define check_gcc before used (Re: CVS [email protected]: linux)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · On Wed, 22 Oct 2003 00:25:50 +0100, [email protected] said:
ralf> CVSROOT: /home/cvs
ralf> Module name: linux
ralf> Changes by: [email protected] 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 ?
arch/mips64/Makefile +2 -2
@@ -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