Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/rs6000 By changing rs6000_...



details:   https://anonhg.NetBSD.org/src/rev/9c94dbd5d92c
branches:  trunk
changeset: 339032:9c94dbd5d92c
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 23 01:37:13 2015 +0000

description:
By changing rs6000_elf_reloc_rw_mask to return 3 if using a powerpc64 ABI
on NetBSD, we basicly eliminate the only difference between have -fPIC or
not.  This enables us to turn on MKPICLIB for powerpc64.

diffstat:

 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r f8a71c403c6c -r 9c94dbd5d92c external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Tue Jun 23 01:03:35 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Tue Jun 23 01:37:13 2015 +0000
@@ -29124,7 +29124,11 @@
   if (flag_pic)
     return 3;
   else if (DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_ELFv2)
+#if defined (POWERPC_NETBSD)
+    return 3;
+#else
     return 2;
+#endif
   else
     return 0;
 }



Home | Main Index | Thread Index | Old Index