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).
This commit is contained in:
matt 2013-02-02 05:04:25 +00:00
parent 1f03a12d0f
commit d6f7d83d82

View File

@ -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