2.4.36-stable kernel tree
Revision | e56ce115f0d4fc815b2eeac51c6d1c51e85d9d42 (tree) |
---|---|
Zeit | 2007-09-09 02:39:20 |
Autor | Willy Tarreau <w@1wt....> |
Commiter | Willy Tarreau |
[PATCH] restore -fno-unit-at-a-time on GCC >= 4
-fno-unit-at-a-time was removed for gcc >= 4 in order to
support gcc 4.2. Unfortunately, this caused nasty problems
in many modules which had some of their read-only parameters
optimized away.
So we have to restore -fno-unit-at-a-time for the moment.
This will break gcc 4.2 again, and another solution will be
needed in order to support it. Note that -fno-unit-at-a-time
may not be supported in future versions of gcc.
Signed-off-by: Willy Tarreau <w@1wt.eu>
@@ -94,7 +94,10 @@ endif | ||
94 | 94 | |
95 | 95 | # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use |
96 | 96 | # a lot more stack due to the lack of sharing of stacklots. |
97 | -CFLAGS += $(call if_gcc4,,$(call check_gcc,-fno-unit-at-a-time,)) | |
97 | +# CFLAGS += $(call if_gcc4,,$(call check_gcc,-fno-unit-at-a-time,)) | |
98 | +# Disable unit-at-a-time on gcc >= 4 too, because it removes seemingly unused | |
99 | +# variables which are indeed module params. | |
100 | +CFLAGS += $(call check_gcc,-fno-unit-at-a-time,) | |
98 | 101 | |
99 | 102 | HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o |
100 | 103 |