From: Kaz Kojima Date: Wed, 12 May 2004 04:32:01 +0000 (+0000) Subject: re PR rtl-optimization/15100 (cc1plus got hang-up on libstdc++-v3/testsuite/abi_check.cc) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e51f91591208c43fbe703711dc2e7c91ea01b835;p=gcc.git re PR rtl-optimization/15100 (cc1plus got hang-up on libstdc++-v3/testsuite/abi_check.cc) PR optimization/15100 * combine.c (distribute_notes): Don't create a dangling REG_LIBCALL/REG_RETVAL note. From-SVN: r81736 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ba2aed5c3d..5b137ab1f3a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-05-11 Kaz Kojima + + PR optimization/15100 + * combine.c (distribute_notes): Don't create a dangling + REG_LIBCALL/REG_RETVAL note. + 2004-05-11 Aldy Hernandez * config/rs6000/spe.md (spe_evneg): Rename to negv2si2. 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;