• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revisione56ce115f0d4fc815b2eeac51c6d1c51e85d9d42 (tree)
Zeit2007-09-09 02:39:20
AutorWilly Tarreau <w@1wt....>
CommiterWilly Tarreau

Log Message

[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>

Ändern Zusammenfassung

Diff

--- a/arch/i386/Makefile
+++ b/arch/i386/Makefile
@@ -94,7 +94,10 @@ endif
9494
9595 # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use
9696 # 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,)
98101
99102 HEAD := arch/i386/kernel/head.o arch/i386/kernel/init_task.o
100103
Show on old repository browser