|
From: <sv...@va...> - 2007-11-16 12:31:27
|
Author: sewardj
Date: 2007-11-16 12:31:27 +0000 (Fri, 16 Nov 2007)
New Revision: 7164
Log:
Avoid hundreds of warnings from -Winline on gcc-4.3:
In dump.c, gcc complains that 'param max-stack-frame-growth' would be
exceeded, so remove 'inline' spec.
All other warnings are of the form 'call is unlikely and code size
would grow'. These aren't interesting. Remove -Winline.
Modified:
trunk/Makefile.flags.am
trunk/callgrind/dump.c
Modified: trunk/Makefile.flags.am
===================================================================
--- trunk/Makefile.flags.am 2007-11-16 12:02:43 UTC (rev 7163)
+++ trunk/Makefile.flags.am 2007-11-16 12:31:27 UTC (rev 7164)
@@ -1,7 +1,7 @@
# Baseline flags for all compilations. Aim here is to maximise
# performance and get whatever useful warnings we can out of gcc.
-AM_CFLAGS_BASE = -O2 -g -Wmissing-prototypes -Winline -Wall -Wshadow \
+AM_CFLAGS_BASE = -O2 -g -Wmissing-prototypes -Wall -Wshadow \
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations \
-fno-strict-aliasing
Modified: trunk/callgrind/dump.c
===================================================================
--- trunk/callgrind/dump.c 2007-11-16 12:02:43 UTC (rev 7163)
+++ trunk/callgrind/dump.c 2007-11-16 12:31:27 UTC (rev 7164)
@@ -434,7 +434,7 @@
}
}
-static __inline__
+static /* __inline__ */
Bool get_debug_pos(BBCC* bbcc, Addr addr, AddrPos* p)
{
Char file[FILENAME_LEN];
|