linux-mips
[Top] [All Lists]

define check_gcc before used (Re: CVS Update@-mips.org: linux)

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: define check_gcc before used (Re: CVS Update@-mips.org: linux)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 05 Nov 2003 17:17:01 +0900 (JST)
In-reply-to: <20031021232555Z8225529-1272+8229@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20031021232555Z8225529-1272+8229@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Wed, 22 Oct 2003 00:25:50 +0100, ralf@linux-mips.org said:
ralf> CVSROOT:  /home/cvs
ralf> Module name:      linux
ralf> Changes by:       ralf@ftp.linux-mips.org 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

<Prev in Thread] Current Thread [Next in Thread>
  • define check_gcc before used (Re: CVS Update@-mips.org: linux), Atsushi Nemoto <=