aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2010-08-27 14:22:41 +0000
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2010-08-27 14:22:41 +0000
commitda787decc600b8cad4b892a39a59f48400393471 (patch)
tree55e9a007c34c19a3877603d5f62903ce14888e31
parente240f0f4cca760c8602ecc3f65c074bceb858f43 (diff)
downloadgcc-da787decc600b8cad4b892a39a59f48400393471.zip
gcc-da787decc600b8cad4b892a39a59f48400393471.tar.gz
gcc-da787decc600b8cad4b892a39a59f48400393471.tar.bz2
arm.md (enabled): Test the value of arch_enabled rather than just using it.
2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/arm/arm.md (enabled): Test the value of arch_enabled rather than just using it. From-SVN: r163585
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.md10
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index edd3c4c..2767fde 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
+
+ * config/arm/arm.md (enabled): Test the value of arch_enabled
+ rather than just using it.
+
2010-08-27 Olivier Hainque <hainque@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 70273d5..5a8d8eb 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -234,10 +234,12 @@
(const_string "yes"))
; Enable all alternatives that are both arch_enabled and insn_enabled.
-(define_attr "enabled" "no,yes"
- (if_then_else (eq_attr "insn_enabled" "yes")
- (attr "arch_enabled")
- (const_string "no")))
+ (define_attr "enabled" "no,yes"
+ (if_then_else (eq_attr "insn_enabled" "yes")
+ (if_then_else (eq_attr "arch_enabled" "yes")
+ (const_string "yes")
+ (const_string "no"))
+ (const_string "no")))
; POOL_RANGE is how far away from a constant pool entry that this insn
; can be placed. If the distance is zero, then this insn will never