gcc: prevent the use of LDRD/STRD on ARMv5TE
[openwrt.git] / toolchain / gcc / patches / 4.8-linaro / 800-arm_v5te_no_ldrd_strd.patch
1 --- a/gcc/config/arm/arm.h
2 +++ b/gcc/config/arm/arm.h
3 @@ -271,7 +271,7 @@ extern void (*arm_lang_output_object_att
4  /* Thumb-1 only.  */
5  #define TARGET_THUMB1_ONLY             (TARGET_THUMB1 && !arm_arch_notm)
6  
7 -#define TARGET_LDRD                    (arm_arch5e && ARM_DOUBLEWORD_ALIGN \
8 +#define TARGET_LDRD                    (arm_arch6 && ARM_DOUBLEWORD_ALIGN \
9                                           && !TARGET_THUMB1)
10  
11  /* The following two macros concern the ability to execute coprocessor