diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1996-10-28 15:17:18 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1996-10-28 15:17:18 +0000 |
commit | 64d732de57b1d32871197c8d51c784399b95d5a3 (patch) | |
tree | cb972471673f128a5d57f6341162c961003e2483 | |
parent | 0f68f06bf4d93a68339490f45921d895a21e6d07 (diff) | |
download | gcc-64d732de57b1d32871197c8d51c784399b95d5a3.zip gcc-64d732de57b1d32871197c8d51c784399b95d5a3.tar.gz gcc-64d732de57b1d32871197c8d51c784399b95d5a3.tar.bz2 |
Work with latest changes to Makefile; -fpic does not need a TOC area
From-SVN: r13048
-rw-r--r-- | gcc/config/rs6000/sysv4.h | 7 | ||||
-rw-r--r-- | gcc/config/rs6000/t-ppc | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/t-ppcgas | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 6954ed7..a734ee6 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -47,9 +47,10 @@ extern enum rs6000_sdata_type rs6000_sdata; #define TARGET_REGNAMES (target_flags & MASK_REGNAMES) #define TARGET_PROTOTYPE (target_flags & MASK_PROTOTYPE) #define TARGET_EABI (target_flags & MASK_EABI) -#define TARGET_TOC ((target_flags & (MASK_64BIT \ - | MASK_RELOCATABLE \ - | MASK_MINIMAL_TOC)) \ +#define TARGET_TOC ((target_flags & MASK_64BIT) \ + || ((target_flags & (MASK_RELOCATABLE \ + | MASK_MINIMAL_TOC)) \ + && flag_pic > 1) \ || DEFAULT_ABI == ABI_AIX \ || DEFAULT_ABI == ABI_NT) diff --git a/gcc/config/rs6000/t-ppc b/gcc/config/rs6000/t-ppc index e8cf667..13f450d 100644 --- a/gcc/config/rs6000/t-ppc +++ b/gcc/config/rs6000/t-ppc @@ -73,7 +73,7 @@ stmp-crt-sub: $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/scrt0.o scrt0.c # Install multiple versions of crt[in].o -install-crt: stmp-crt install-dir install-multilib +install-crt: stmp-crt installdirs install-multilib for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \ dir=`echo $$i | sed -e 's/;.*$$//'`; \ rm -f $(libsubdir)/$${dir}/[es]crt[in0].o; \ diff --git a/gcc/config/rs6000/t-ppcgas b/gcc/config/rs6000/t-ppcgas index 719babc..a57bddb 100644 --- a/gcc/config/rs6000/t-ppcgas +++ b/gcc/config/rs6000/t-ppcgas @@ -105,7 +105,7 @@ stmp-crt-sub2: $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/scrt0.o scrt0.c # Install multiple versions of ?crt[in].o -install-crt: stmp-crt install-dir install-multilib +install-crt: stmp-crt installdirs install-multilib for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \ dir=`echo $$i | sed -e 's/;.*$$//'`; \ flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ |