This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, gcc 5 regression] re-enable biarch for powerpc-linux-gnu


We've found that configuring a powerpc-linux-gnu cross toolchain with --enable-targets=all no longer enables -m64 support in GCC 5, due to the patch for PR target/65286. (We want to build with a -m64 multilib, in particular.)

The attached patch seems to fix the breakage, but I'm not sure that it might not break some other configuration. If this isn't the right fix, can one of the target experts suggest a better one?

Here's a link to the discussion of the patch that caused the breakage:

https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00321.html

-Sandra

2015-05-18  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
	to build a biarch toolchain again.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 449971)
+++ gcc/config.gcc	(working copy)
@@ -2376,6 +2379,7 @@ powerpc*-*-linux*)
 	maybe_biarch=${cpu_is_64bit}
 	case ${enable_targets} in
 	    *powerpc64*) maybe_biarch=yes ;;
+	    all) maybe_biarch=yes ;;
 	esac
 	case ${target} in
 	    powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]