summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-12 04:32:01 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-12 04:32:01 +0000
commit99f803d957b194098da7b5ca43dba74bb0b57b6d (patch)
tree230c058f0d0894ea4c0b26144f6d5bfd20325ea5 /gcc/combine.c
parentac4b7b503b5826407079f5652e47bc1336345649 (diff)
downloadgcc-99f803d957b194098da7b5ca43dba74bb0b57b6d.tar.gz
PR optimization/15100
* combine.c (distribute_notes): Don't create a dangling REG_LIBCALL/REG_RETVAL note. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index eea9bf2849d..49b486e28c4 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -12592,6 +12592,9 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2)
libcall sequence, don't add the notes. */
else if (XEXP (note, 0) == from_insn)
tem = place = 0;
+ /* Don't add the dangling REG_RETVAL note. */
+ else if (! tem)
+ place = 0;
}
break;
@@ -12609,6 +12612,9 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2)
libcall sequence, don't add the notes. */
else if (XEXP (note, 0) == from_insn)
tem = place = 0;
+ /* Don't add the dangling REG_LIBCALL note. */
+ else if (! tem)
+ place = 0;
}
break;