Module Name:    src
Committed By:   matt
Date:           Sat Feb  2 05:04:26 UTC 2013

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/arm: netbsd-elf.h

Log Message:
Can't use TARGET_AAPCS_BASED since it's not setup by the time
SUBTARGET_CPU_DEFAULT is invoked so use ARM_DEFAULT_ABI instead).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.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/arm/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.3 src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.4
--- src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h:1.3	Fri Jan 11 13:58:40 2013
+++ src/external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h	Sat Feb  2 05:04:25 2013
@@ -29,7 +29,8 @@
    SUBTARGET_CPU_DEFAULT to achieve this.  */
 
 #define SUBTARGET_CPU_DEFAULT \
-	(TARGET_AAPCS_BASED ? TARGET_CPU_arm926ejs : TARGET_CPU_arm6)
+	(ARM_DEFAULT_ABI != ARM_ABI_APCS && ARM_DEFAULT_ABI != ARM_ABI_ATPCS \
+	    ? TARGET_CPU_arm926ejs : TARGET_CPU_arm6)
 
 /* This defaults us to little-endian.  */
 #ifndef TARGET_ENDIAN_DEFAULT

Reply via email to