On 08.10.2015 20:56, Lynn A. Boger wrote:
I think my original fix with linux.h doing the #undef on
TARGET_CAN_SPLIT_STACK_64BIT is the right fix at least
for powerpc-linux-gnu 32 bit only.
It works for powerpc-linux-gnu without multilib and doesn't break
powerpc64-linux-gnu or powerpc64le-linux-gnu.
Can you tell me how you are configuring the multilib build that defaults to
powerpc-linux-gnu and how it
fails? Maybe there is another problem for that combination.
Configured with: -v
--with-pkgversion='Ubuntu 20151005-0ubuntu1'
--with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
--enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot
--enable-shared
--enable-linker-build-id
--disable-nls
--with-sysroot=/
--enable-clocale=gnu
--enable-libstdcxx-debug
--enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new
--enable-gnu-unique-object
--disable-libitm
--disable-libquadmath
--enable-plugin
--with-system-zlib
--disable-browser-plugin
--enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-snap-powerpc/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-snap-powerpc
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-snap-powerpc
--with-arch-directory=ppc
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc
--enable-secureplt
--disable-softfloat
--with-cpu=default32
--disable-softfloat
--enable-targets=powerpc-linux,powerpc64-linux
--enable-multiarch
--disable-werror
--with-long-double-128
--enable-multilib
--enable-checking=yes
--build=powerpc-linux-gnu
--host=powerpc-linux-gnu
--target=powerpc-linux-gnu
fails in gotools with:
cc1: error: '-fsplit-stack' currently only supported on PowerPC64 GNU/Linux with
glibc-2.18 or later
cc1: error: '-fsplit-stack' is not supported by this compiler configuration
this information is from the log below, but it's a parallel build, so a bit
useless
https://launchpadlibrarian.net/220374353/buildlog_ubuntu-wily-powerpc.gcc-snapshot_20151005-0ubuntu1_BUILDING.txt.gz
As David noted, the use of TARGET_64BIT or TARGET_POWERPC64 won't work for this
#define.
I found that out too =) Note that ada builds are currently broken on the trunk.
Matthias