| To: | akpm@osdl.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] mips: there is no __GNUC_MAJOR__ |
| From: | Alexey Dobriyan <adobriyan@gmail.com> |
| Date: | Tue, 23 Jan 2007 21:30:14 +0300 |
| Cc: | linux-mips@linux-mips.org |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=N8YVcbn00gEAgmmvc86BmLnMgQmcIaPiHycYESwDw5ZnMdkEWN1IRKpZLJToeiYI+IObAMMC8lSc2Nxh9BMy9TpvMjoxmxyRFRxfIzX99ZDSAa4soVuiyrqXseccLVKJdiHxC3IT2ck9SPsEy+o6OfKspGVLW8n4IDbiK1tfulY= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.11 |
gcc major version number is in __GNUC__. As side effect fix checking with
sparse if sparse was built with gcc 4.1 and mips cross-compiler is 3.4.
sparse will inherit version 4.1, __GNUC__ won't be filtered from
"-dM -E -xc" output, sparse will pick only new major, effectively becoming
gcc version 3.1 which is unsupported.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/mips/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -623,7 +623,8 @@ LDFLAGS += -m $(ld-emul)
ifdef CONFIG_MIPS
CHECKFLAGS += $(shell $(CC) $(CFLAGS) -dM -E -xc /dev/null | \
- egrep -vw '__GNUC_(MAJOR|MINOR|PATCHLEVEL)__' | \
+ egrep -vw '__GNUC__' | \
+ egrep -vw '__GNUC_(MINOR|PATCHLEVEL)__' | \
sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/")
ifdef CONFIG_64BIT
CHECKFLAGS += -m64
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/7] signal: clean up sigframe structure, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH] MMC: au1xmmc R6 response support, Pierre Ossman |
| Previous by Thread: | [PATCH][RFC] Move some kernel globals from asm file to C file., Atsushi Nemoto |
| Next by Thread: | Re: [PATCH] mips: there is no __GNUC_MAJOR__, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |