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 Make -mabi=elfv2 wo...



details:   https://anonhg.NetBSD.org/src/rev/b2ba2f7bcf34
branches:  trunk
changeset: 801900:b2ba2f7bcf34
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 23 06:50:18 2014 +0000

description:
Make -mabi=elfv2 work for powerpc64

diffstat:

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

diffs (25 lines):

diff -r c02972eef14b -r b2ba2f7bcf34 external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
--- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Sat Aug 23 02:26:36 2014 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h       Sat Aug 23 06:50:18 2014 +0000
@@ -85,6 +85,8 @@
 #define INVALID_64BIT "-m%s not supported in this configuration"
 #define INVALID_32BIT INVALID_64BIT
 
+#define ELFv2_ABI_CHECK (rs6000_elf_abi != 1)                   
+
 #undef SUBSUBTARGET_OVERRIDE_OPTIONS
 #define        SUBSUBTARGET_OVERRIDE_OPTIONS                           \
   do                                                           \
@@ -99,6 +101,12 @@
              error (INVALID_64BIT, "call");                    \
            }                                                   \
          dot_symbols = !strcmp (rs6000_abi_name, "aixdesc");   \
+         if (ELFv2_ABI_CHECK)                                  \
+           {                                                   \
+             rs6000_current_abi = ABI_ELFv2;                   \
+             if (dot_symbols)                                  \
+               error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \
+           }                                                   \
          if (rs6000_isa_flags & OPTION_MASK_RELOCATABLE)       \
            {                                                   \
              rs6000_isa_flags &= ~OPTION_MASK_RELOCATABLE;     \



Home | Main Index | Thread Index | Old Index