From: Richard Stallman Date: Mon, 31 May 1993 04:33:15 +0000 (+0000) Subject: (expand_inline_function): Increment map->const_age before copying REG_NOTES. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e62d14be42e5287f858ff4622a4b6f2af6290824;p=gcc.git (expand_inline_function): Increment map->const_age before copying REG_NOTES. From-SVN: r4604 --- diff --git a/gcc/integrate.c b/gcc/integrate.c index 8bb32dace7a..e18f69041ea 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)]