aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2015-06-26 09:08:03 +0000
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2015-06-26 09:08:03 +0000
commit63be509029db0b15f445400c75722862cf252b25 (patch)
tree163523fbfa57bdbbaa2e843a26ecd5cd1a7a5162 /gcc
parentaf05e6e5417f406831e29657861b98f8b13b90ee (diff)
downloadgcc-63be509029db0b15f445400c75722862cf252b25.zip
gcc-63be509029db0b15f445400c75722862cf252b25.tar.gz
gcc-63be509029db0b15f445400c75722862cf252b25.tar.bz2
[Patch ARM] Fix thinko in use of TARGET_UNIFIED_ASM
While paving the way to turn on unified syntax in ARM state I came across this use of TARGET_UNIFIED_ASM that really doesn't make sense. The idea that pop has different encoding sizes is a property of the Thumb instruction set rather than a property of which form of unified syntax was used. I still have quite a large patch set for the unified asm switch but it seems useful to get this one out of the way to catch any other issues. Tested with an appropriate set of multilibs on arm-none-eabi / applied. Bootstrapped on armhf. Applied to trunk. 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/arm/arm.c (arm_output_multireg_pop): Fix use of TARGET_UNIFIED_ASM. From-SVN: r224997
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 21627b4..ecc209f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
+
+ * config/arm/arm.c (arm_output_multireg_pop): Fix use of
+ TARGET_UNIFIED_ASM.
+
2015-06-26 Richard Biener <rguenther@suse.de>
* match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 83f3269..9f30041 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -17589,7 +17589,7 @@ arm_output_multireg_pop (rtx *operands, bool return_pc, rtx cond, bool reverse,
}
conditional = reverse ? "%?%D0" : "%?%d0";
- if ((regno_base == SP_REGNUM) && TARGET_UNIFIED_ASM)
+ if ((regno_base == SP_REGNUM) && TARGET_THUMB)
{
/* Output pop (not stmfd) because it has a shorter encoding. */
gcc_assert (update);