[MIPS] There is no __GNUC_MAJOR__

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>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by Alexey Dobriyan and committed by Ralf Baechle 48c35b2d 419dd837

+1 -1
+1 -1
arch/mips/Makefile
··· 623 624 ifdef CONFIG_MIPS 625 CHECKFLAGS += $(shell $(CC) $(CFLAGS) -dM -E -xc /dev/null | \ 626 - egrep -vw '__GNUC_(MAJOR|MINOR|PATCHLEVEL)__' | \ 627 sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") 628 ifdef CONFIG_64BIT 629 CHECKFLAGS += -m64
··· 623 624 ifdef CONFIG_MIPS 625 CHECKFLAGS += $(shell $(CC) $(CFLAGS) -dM -E -xc /dev/null | \ 626 + egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ 627 sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") 628 ifdef CONFIG_64BIT 629 CHECKFLAGS += -m64