Set CONST_CALL_P for libcalls
authorBernd Schmidt <bernds@redhat.co.uk>
Mon, 18 Sep 2000 09:46:51 +0000 (09:46 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Mon, 18 Sep 2000 09:46:51 +0000 (09:46 +0000)
From-SVN: r36486

gcc/ChangeLog
gcc/optabs.c

index 416b58560db5e9eabb936734c515328b5a6bb635..523c643ca16f30b6cc900ff7405466c3431e01d4 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
+
 2000-09-18  Andreas Jaeger  <aj@suse.de>
 
        * configure.in: Define _GNU_SOURCE only when using the GNU C
index 8468fbed523ec8d1664fb87b2aaa45d2f779a404..6f087a8ca742247c836c9eb3c315c3025a7f0f36 100644 (file)
@@ -2766,14 +2766,15 @@ emit_libcall_block (insns, target, result, equiv)
 
   /* look for any CALL_INSNs in this sequence, and attach a REG_EH_REGION
      reg note to indicate that this call cannot throw or execute a nonlocal
-     goto. (Unless there is already a REG_EH_REGION note, in which case
-     we update it.)  */
+     goto (unless there is already a REG_EH_REGION note, in which case
+     we update it).  Also set the CONST_CALL_P flag.  */
 
   for (insn = insns; insn; insn = NEXT_INSN (insn))
     if (GET_CODE (insn) == CALL_INSN)
       {
        rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
 
+       CONST_CALL_P (insn) = 1;
        if (note != 0)
          XEXP (note, 0) = GEN_INT (-1);
        else