summaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-30 21:57:56 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-30 21:57:56 +0000
commit4fe49c859bf090adededf2ac0283f5cd3da262cd (patch)
tree02dcc5d5de24bf48516498d246dc8137d5864968 /gcc/genemit.c
parentb2976eba1ccd9c1aa7400c15c26bd353b6d1deef (diff)
downloadgcc-4fe49c859bf090adededf2ac0283f5cd3da262cd.tar.gz
Recognize return insns even if the return appears in a parallel.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 781eba2beb0..cb6c06ccd18 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -524,8 +524,9 @@ gen_expand (expand)
rtx next = XVECEXP (expand, 1, i);
if ((GET_CODE (next) == SET && GET_CODE (SET_DEST (next)) == PC)
|| (GET_CODE (next) == PARALLEL
- && GET_CODE (XVECEXP (next, 0, 0)) == SET
- && GET_CODE (SET_DEST (XVECEXP (next, 0, 0))) == PC)
+ && ((GET_CODE (XVECEXP (next, 0, 0)) == SET
+ && GET_CODE (SET_DEST (XVECEXP (next, 0, 0))) == PC)
+ || GET_CODE (XVECEXP (next, 0, 0)) == RETURN))
|| GET_CODE (next) == RETURN)
printf (" emit_jump_insn (");
else if ((GET_CODE (next) == SET && GET_CODE (SET_SRC (next)) == CALL)