projects/linux·commit 42012cc4

[PATCH] use gcc -O1 in fs/reiserfs only for ancient gcc versions

42012cc4 · Olaf Hering <[email protected]> · 2006-09-29 01:59:21 -07:00

Only compile with -O1 if the (very old) compiler is broken.  We use
reiserfs alot since SLES9 on ppc64, and it was never seen with gcc33.
Assume the broken gcc is gcc-3.4 or older.

Signed-off-by: Olaf Hering <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
42012cc4a2183c555a907eee32d7ce4fc7dc3a6a
Parents
4d24607b

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/reiserfs/Makefilemodified+1−1View file

fs/reiserfs/Makefile

View file
diff --git a/fs/reiserfs/Makefile b/fs/reiserfs/Makefile
index 3a59309..0eb7ac0 100644
--- a/fs/reiserfs/Makefile
+++ b/fs/reiserfs/Makefile
@@ -28,7 +28,7 @@ endif
# will work around it. If any other architecture displays this behavior,
# add it here.
ifeq ($(CONFIG_PPC32),y)
-EXTRA_CFLAGS := -O1
+EXTRA_CFLAGS := $(call cc-ifversion, -lt, 0400, -O1)
endif
TAGS: