diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-08 13:58:51 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-08 13:58:51 -0500 |
commit | ad14336de8e9cddae9ed29d45bd2e97abb72eaf9 (patch) | |
tree | 1846c6ca5ecc98a1ab324d9a3a97873067450f7a /arch/i386/Makefile | |
parent | 442ce844e139c1e3c23e8b4df13468041ae35721 (diff) |
kbuild: remove GCC_VERSION
This was causing some ordering problems. Remove the up-front evaluation
and just revaluate the compiler version each time we need it.
(The up-front evaluation was problematic because some architectures modify
the value of $(CC)).
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/i386/Makefile')
-rw-r--r-- | arch/i386/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index d121ea18460..8f6b90e44c9 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -39,8 +39,8 @@ include $(srctree)/arch/i386/Makefile.cpu | |||
39 | 39 | ||
40 | # -mregparm=3 works ok on gcc-3.0 and later | 40 | # -mregparm=3 works ok on gcc-3.0 and later |
41 | # | 41 | # |
42 | GCC_VERSION := $(call cc-version) | 42 | cflags-$(CONFIG_REGPARM) += $(shell if [ $(call cc-version) -ge 0300 ] ; then \ |
43 | cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;) | 43 | echo "-mregparm=3"; fi ;) |
44 | 44 | ||
45 | # Disable unit-at-a-time mode, it makes gcc use a lot more stack | 45 | # Disable unit-at-a-time mode, it makes gcc use a lot more stack |
46 | # due to the lack of sharing of stacklots. | 46 | # due to the lack of sharing of stacklots. |