summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-10 16:31:40 +0000
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-10 16:31:40 +0000
commit168bf671b93c52c9012931e9374230d4674cab2c (patch)
tree39201ad1ce41700f59f0cee9ec14ce27d5607dd4 /gcc/final.c
parentf93320db6337823acb4a9ec2838a98cef80e0f58 (diff)
downloadgcc-168bf671b93c52c9012931e9374230d4674cab2c.tar.gz
2006-08-10 Paul Brook <paul@codesourcery.com>
gcc/ * final.c (final_scan_insn): Clear current_insn_predicate before outputting inline asm. gcc/testsuite/ * gcc.target/arm/cond-asm.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 13f724ace8e..80b3913cbf4 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1953,6 +1953,10 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
int insn_code_number;
const char *template;
+#ifdef HAVE_conditional_execution
+ /* Reset this early so it is correct for ASM statements. */
+ current_insn_predicate = NULL_RTX;
+#endif
/* An INSN, JUMP_INSN or CALL_INSN.
First check for special kinds that recog doesn't recognize. */
@@ -2388,8 +2392,6 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
#ifdef HAVE_conditional_execution
if (GET_CODE (PATTERN (insn)) == COND_EXEC)
current_insn_predicate = COND_EXEC_TEST (PATTERN (insn));
- else
- current_insn_predicate = NULL_RTX;
#endif
#ifdef HAVE_cc0