X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Makefile.flags;h=60bb888d8db53d8dfdaaeee01abb4f3f500bd49c;hb=b103fb10cfb09902df1581efc81ea386e63c71b5;hp=2109fdf11c46d56bffacf6b99070da11552a6480;hpb=dec37b3232d3dce3fb3ad024845f46d882558777;p=oweals%2Fbusybox.git diff --git a/Makefile.flags b/Makefile.flags index 2109fdf11..60bb888d8 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -32,6 +32,16 @@ CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) ifeq ($(CONFIG_WERROR),y) CFLAGS += $(call cc-option,-Werror,) +## TODO: +## gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) is a PITA: +## const char *ptr; ... off_t v = *(off_t*)ptr; -> BOOM +## and no easy way to convince it to shut the hell up. +## We have a lot of such things all over the place. +## Classic *(off_t*)(void*)ptr does not work, +## and I am unwilling to do crazy gcc specific ({ void *ppp = ...; }) +## stuff in macros. This would obfuscate the code too much. +## Maybe try __attribute__((__may_alias__))? +#CFLAGS += $(call cc-ifversion, -eq, 0404, -fno-strict-aliasing) endif # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)