diff options
author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-18 09:46:51 +0000 |
---|---|---|
committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-18 09:46:51 +0000 |
commit | a0cae1a083edccdb518d237178575980d708cfe8 (patch) | |
tree | ba1ef7bb2b442a6e3f9145b1a3a3f38b760c4ebd /gcc/optabs.c | |
parent | feedbb11d64f3b305fdcd93c5adec598555a8245 (diff) | |
download | gcc-a0cae1a083edccdb518d237178575980d708cfe8.tar.gz |
Set CONST_CALL_P for libcalls
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36486 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 8468fbed523..6f087a8ca74 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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 |