From dfb3f06a5c5321e64c8aacd900357d47837b5289 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 23 Aug 2014 06:50:18 +0000 Subject: [PATCH] Make -mabi=elfv2 work for powerpc64 --- external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h index 519bb12added..93bd03b6c536 100644 --- a/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h +++ b/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h @@ -85,6 +85,8 @@ extern int dot_symbols; #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 @@ extern int dot_symbols; 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; \