aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-22 02:34:10 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-22 02:34:10 +0200
commitdc3d8939d464e3de2bd47b6936f06d07ea58c75e (patch)
tree4996cd170326c4855a98da00c59ab8c6108f57c2
parentf2a8d5db9ab1921e4bbe799b767fa2a94a83f228 (diff)
downloadbusybox-w32-dc3d8939d464e3de2bd47b6936f06d07ea58c75e.tar.gz
busybox-w32-dc3d8939d464e3de2bd47b6936f06d07ea58c75e.tar.bz2
busybox-w32-dc3d8939d464e3de2bd47b6936f06d07ea58c75e.zip
preliminary work for gcc 4.4.0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Makefile.flags9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 2109fdf11..032f6c135 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -32,6 +32,15 @@ CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
32 32
33ifeq ($(CONFIG_WERROR),y) 33ifeq ($(CONFIG_WERROR),y)
34CFLAGS += $(call cc-option,-Werror,) 34CFLAGS += $(call cc-option,-Werror,)
35## TODO:
36## gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) is a PITA:
37## const char *ptr; ... off_t v = *(off_t*)ptr; -> BOOM
38## and no easy way to convince it to shut the hell up.
39## We have a lot of such things all over the place.
40## Classic *(off_t*)(void*)ptr does not work,
41## and I am unwilling to do crazy gcc specific ({ void *ppp = ...; })
42## stuff in macros. This would obfuscate the code too much.
43#CFLAGS += $(call cc-ifversion, -eq, 0404, -fno-strict-aliasing)
35endif 44endif
36# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() 45# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
37CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) 46CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)