OSDN Git Service

PR optimization/15100
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 May 2004 04:32:01 +0000 (04:32 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 May 2004 04:32:01 +0000 (04:32 +0000)
* 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

gcc/ChangeLog
gcc/combine.c

index 8ba2aed..5b137ab 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-11  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR optimization/15100
+       * combine.c (distribute_notes): Don't create a dangling
+       REG_LIBCALL/REG_RETVAL note.
+
 2004-05-11  Aldy Hernandez  <aldyh@redhat.com>
 
        * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
index eea9bf2..49b486e 100644 (file)
@@ -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;