|
From: <sv...@va...> - 2006-03-30 10:26:49
|
Author: njn
Date: 2006-03-30 11:26:44 +0100 (Thu, 30 Mar 2006)
New Revision: 5801
Log:
Avoid compile warnings for tinycc.
Modified:
trunk/perf/Makefile.am
trunk/perf/tinycc.c
Modified: trunk/perf/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/perf/Makefile.am 2006-03-29 19:33:54 UTC (rev 5800)
+++ trunk/perf/Makefile.am 2006-03-30 10:26:44 UTC (rev 5801)
@@ -26,3 +26,5 @@
fbench_CFLAGS =3D $(AM_FLAG_M3264_PRI) -g -O2
fbench_LDADD =3D=20
ffbench_LDADD =3D -lm
+
+tinycc_CFLAGS =3D $(AM_CFLAGS) -Wno-shadow
Modified: trunk/perf/tinycc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/perf/tinycc.c 2006-03-29 19:33:54 UTC (rev 5800)
+++ trunk/perf/tinycc.c 2006-03-30 10:26:44 UTC (rev 5801)
@@ -9145,7 +9145,7 @@
break;
=20
/* return next token without macro substitution */
-static inline void next_nomacro1(void)
+static /*inline*/ void next_nomacro1(void)
{
int t, c, is_long;
TokenSym *ts;
@@ -9833,7 +9833,7 @@
=20
/* handle the '##' operator. Return NULL if no '##' seen. Otherwise
return the resulting string (which must be freed). */
-static inline int *macro_twosharps(const int *macro_str)
+static /*inline*/ int *macro_twosharps(const int *macro_str)
{
TokenSym *ts;
const int *macro_ptr1, *start_macro_ptr, *ptr, *saved_macro_ptr;
@@ -11144,6 +11144,12 @@
}
}
=20
+/* return the pointed type of t */
+static inline CType *pointed_type(CType *type)
+{
+ return &type->ref->type;
+}
+
static int pointed_size(CType *type)
{
int align;
@@ -11620,12 +11626,6 @@
}
}
=20
-/* return the pointed type of t */
-static inline CType *pointed_type(CType *type)
-{
- return &type->ref->type;
-}
-
/* modify type so that its it is a pointer to type. */
static void mk_pointer(CType *type)
{
@@ -20585,7 +20585,7 @@
ucontext_t *uc, int level)
{
unsigned long fp;
- int i;
+ //int i;
=20
if (level =3D=3D 0) {
*paddr =3D 12345; //uc->uc_mcontext.gregs[REG_EIP];
|