On Thu, Sep 17, 2015 at 12:13 PM, Lynn A. Boger <labo...@linux.vnet.ibm.com> wrote: > Here is my updated patch, with the changes suggested by > Ian for gcc/gospec.c and David for gcc/configure.ac. > > Bootstrap built and tested on ppc64le, ppc64 multilib. > > 2015-09-17 Lynn Boger <labo...@linux.vnet.ibm.com> > gcc/ > PR target/66870 > config/rs6000/sysv4.h: Define TARGET_CAN_SPLIT_STACK_64BIT > config.in: Set up HAVE_GOLD_ALTERNATE_SPLIT_STACK > configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK > on Power based on gold linker version > configure: Regenerate > gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if > HAVE_GOLD_ALTERNATE_SPLIT_STACK defined > go/gospec.c: (lang_specific_driver): Set appropriate split > stack > options for 64 bit compiles based on > TARGET_CAN_SPLIT_STACK_64BIT
Thanks. I had to add ATTRIBUTE_UNUSED to the new variable in go/gospec.c. Committed with these ChangeLog entries: 2015-10-01 Lynn Boger <labo...@linux.vnet.ibm.com> PR target/66870 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define. * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power based on gold linker version. * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if HAVE_GOLD_ALTERNATE_SPLIT_STACK defined. * configure, config.in: Regenerate. 2015-10-01 Lynn Boger <labo...@linux.vnet.ibm.com> PR target/66870 * gospec.c (lang_specific_driver): Set appropriate split stack options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT. Ian