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/3a52a02eb116
branches: trunk
changeset: 331758:3a52a02eb116
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 f99a20a437f9 -r 3a52a02eb116 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