Module Name:    src
Committed By:   matt
Date:           Sat Aug 23 06:50:18 UTC 2014

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
Make -mabi=elfv2 work for powerpc64


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
    src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.8 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.9
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.8	Sat Aug 23 02:17:47 2014
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Sat Aug 23 06:50:18 2014
@@ -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;	\

Reply via email to