Subject: define check_gcc before used (Re: CVS [email-masked]: linux)

From: Atsushi Nemoto <[email-masked]>
Date: Wed, 05 Nov 2003 17:17:01 +0900 (JST)

>>>>> On Wed, 22 Oct 2003 00:25:50 +0100, [email-masked] said:
ralf> CVSROOT:	/home/cvs
ralf> Module name:	linux
ralf> Changes by:	[email-masked]	03/10/22 00:25:50

ralf> Modified files:
ralf> 	arch/mips      : Tag: linux_2_4 Makefile 
ralf> 	arch/mips64    : Tag: linux_2_4 Makefile 

ralf> Log message:
ralf> 	Make gcc try inlining functions really hard.

It seems mips64 Makefile does not pass "-finline-limit=100000" to gcc.
The "check_gcc" must be defined before used ?

diff -u linux-mips-cvs/arch/mips64/Makefile linux/arch/mips64/Makefile
--- linux-mips-cvs/arch/mips64/Makefile	Tue Nov  4 16:57:37 2003
+++ linux/arch/mips64/Makefile	Wed Nov  5 16:50:40 2003
@@ -24,6 +24,8 @@
 CROSS_COMPILE	= $(tool-prefix)
 endif
 
+check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
+
 #
 # The ELF GCC uses -G 0 -mabicalls -fpic as default.  We don't need PIC
 # code in the kernel since it only slows down the whole thing.  For the
@@ -47,8 +49,6 @@
 endif
 endif
 
-check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
-
 #
 # CPU-dependent compiler/assembler options for optimization.
 #
---
Atsushi Nemoto