From da787decc600b8cad4b892a39a59f48400393471 Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Fri, 27 Aug 2010 14:22:41 +0000 Subject: [PATCH] arm.md (enabled): Test the value of arch_enabled rather than just using it. 2010-08-27 Ramana Radhakrishnan * config/arm/arm.md (enabled): Test the value of arch_enabled rather than just using it. From-SVN: r163585 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.md | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index edd3c4c79a7..2767fde83ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-27 Ramana Radhakrishnan + + * config/arm/arm.md (enabled): Test the value of arch_enabled + rather than just using it. + 2010-08-27 Olivier Hainque Eric Botcazou diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 70273d58c38..5a8d8ebbc18 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