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

From: Keith Owens <kaos_at_ocs.com.au>
Date: 2001-09-27 14:57:34
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=f10-f15,f32-f127 \
-	  -falign-functions=32 --param max-inline-insns=400
-# -ffunction-sections
+CFLAGS := $(CFLAGS) -pipe $(EXTRA) -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32
+
+CFLAGS += $(shell if $(CC) --param max-inline-insns=400 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "--param max-inline-insns=400"; fi)
+
 CFLAGS_KERNEL := -mconstant-gp
 
 GCC_VERSION=$(shell $(CROSS_COMPILE)$(HOSTCC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
Received on Wed Sep 26 21:58:15 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:05 EST