summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2007-05-19 18:49:08 +0200
committerSam Ravnborg <sam@ravnborg.org>2007-07-16 21:15:48 +0200
commitf5e83fa4c07488406b4a4e0ab7c4efd8df9ad676 (patch)
tree54831284985b4a90d06989512d9f48ca32ceb23a /arch/powerpc
parent0ab2a272e6b55e5d58168d6983da99e2dc09b8b2 (diff)
downloadlinux-f5e83fa4c07488406b4a4e0ab7c4efd8df9ad676.tar.gz
linux-f5e83fa4c07488406b4a4e0ab7c4efd8df9ad676.tar.bz2
linux-f5e83fa4c07488406b4a4e0ab7c4efd8df9ad676.zip
powerpc: Refuse to build 64-bit with GCC-4.2.0 and CONFIG_MODULES
...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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index fbafd965dcd2..85be60504eb4 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -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.' ; \