aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-31 04:33:15 +0000
committerRichard Stallman <rms@gnu.org>1993-05-31 04:33:15 +0000
commite62d14be42e5287f858ff4622a4b6f2af6290824 (patch)
tree58835b900a881984b2048acb4456d4caaa69e914
parent227f7fd95bb6acb695e2b9820db8f5b503ca5e19 (diff)
downloadgcc-e62d14be42e5287f858ff4622a4b6f2af6290824.zip
gcc-e62d14be42e5287f858ff4622a4b6f2af6290824.tar.gz
gcc-e62d14be42e5287f858ff4622a4b6f2af6290824.tar.bz2
(expand_inline_function): Increment map->const_age before copying REG_NOTES.
From-SVN: r4604
-rw-r--r--gcc/integrate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 8bb32da..e18f690 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -1708,7 +1708,10 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
map->insn_map[INSN_UID (insn)] = copy;
}
- /* Now copy the REG_NOTES. */
+ /* Now copy the REG_NOTES. Increment const_age, so that only constants
+ from parameters can be substituted in. These are the only ones that
+ are valid across the entire function. */
+ map->const_age++;
for (insn = insns; insn; insn = NEXT_INSN (insn))
if (GET_RTX_CLASS (GET_CODE (insn)) == 'i'
&& map->insn_map[INSN_UID (insn)]