Re: [Linux-ia64] kernel update (relative to 2.4.10)

Keith Owens
2001-09-27T04:57:34Z

Some of us are still using gcc 2.96 which does not support --param
max-inline-insns.

Index: 10.15/arch/ia64/Makefile
--- 10.15/arch/ia64/Makefile Thu, 27 Sep 2001 14:15:19 +1000 kaos (linux-2.4/s/c/42_Makefile 1.1.3.1.3.3 644)
+++ 10.15(w)/arch/ia64/Makefile Thu, 27 Sep 2001 14:42:23 +1000 kaos (linux-2.4/s/c/42_Makefile 1.1.3.1.2.4 644)
@@ -17,9 +17,10 @@ LINKFLAGS = -static -T arch/$(ARCH)/vmli
AFLAGS_KERNEL := -mconstant-gp
EXTRA
-CFLAGS := $(CFLAGS) -pipe $(EXTRA) -ffixed-r13 -mfixed-rangeñ0-f15,f32-f127 \
- -falign-functions2 --param max-inline-insns@0
-# -ffunction-sections
+CFLAGS := $(CFLAGS) -pipe $(EXTRA) -ffixed-r13 -mfixed-rangeñ0-f15,f32-f127 -falign-functions2
+
+CFLAGS += $(shell if $(CC) --param max-inline-insns@0 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "--param max-inline-insns@0"; fi)
+
CFLAGS_KERNEL := -mconstant-gp

GCC_VERSION=$(shell $(CROSS_COMPILE)$(HOSTCC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')