]> err.no Git - linux-2.6/commitdiff
powerpc: Refuse to build 64-bit with GCC-4.2.0 and CONFIG_MODULES
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 19 May 2007 16:49:08 +0000 (18:49 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 16 Jul 2007 19:15:48 +0000 (21:15 +0200)
...since this won't work (compiler bug, see <http://gcc.gnu.org/PR31490>).

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/powerpc/Makefile

index fbafd965dcd298049338d84d9b8fca406ab27825..85be60504eb4926e0c1b14131482800181e8b9c7 100644 (file)
@@ -201,6 +201,14 @@ checkbin:
                        false; \
                fi ; \
        fi
+       @if test "$(call cc-fullversion)" = "040200" \
+           && test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \
+               echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \
+               echo 'kernel with modules enabled.' ; \
+               echo -n '*** Please use a different GCC version or ' ; \
+               echo 'disable kernel modules' ; \
+               false ; \
+       fi
        @if ! /bin/echo dssall | $(AS) -many -o $(TOUT) >/dev/null 2>&1 ; then \
                echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build ' ; \
                echo 'correctly with old versions of binutils.' ; \