diff options
author | Olivier Hainque <hainque@act-europe.fr> | 2003-05-03 16:25:22 +0200 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2003-05-03 10:25:22 -0400 |
commit | ee9609391b6e1bd4d026b86cf79bced76e1baa5b (patch) | |
tree | 7ad4bd29e44c9c37b87311753f154d5fa72e515b /gcc/integrate.c | |
parent | 3923e4102fcfa593de9148a4855ca54d8466fbe7 (diff) | |
download | gcc-ee9609391b6e1bd4d026b86cf79bced76e1baa5b.tar.gz |
emit-rtl.c (last_call_insn, [...]): New functions.
* emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
* rtl.h (last_call_insn, add_function_usage_to): New prototypes.
* builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
* calls.c (emit_call_1): Likewise.
(expand_call): For calls initializing constant memory, replace
emission of standalone mem /u clobber with function usage entry.
* expr.c (emit_block_move_via_libcall): Likewise.
* cse.c (count_reg_usage, case EXPR_LIST): New case.
* flow.c (propagate_one_insn): Pass entire operand of
CALL_INSN_FUNCTION_USAGE to mark_used_regs.
* integrate.c (try_constants): For CALL_INSNs, substitute constants
within the FUNCTION_USAGE also.
* loop.c (prescan_loop): Note clobbers of const mem mentioned in
FUNCTION_USAGE lists.
* reload1.c (replace_pseudos_in): Renamed.
(reload): Use it for clobbers surviving until the end of the reload.
From-SVN: r66429
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 3c0b42ae01e..0fd108f2b1d 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -2463,6 +2463,14 @@ try_constants (insn, map) apply_change_group (); subst_constants (&PATTERN (insn), insn, map, 0); apply_change_group (); + + /* Enforce consistency between the addresses in the regular insn flow + and the ones in CALL_INSN_FUNCTION_USAGE lists, if any. */ + if (GET_CODE (insn) == CALL_INSN && CALL_INSN_FUNCTION_USAGE (insn)) + { + subst_constants (&CALL_INSN_FUNCTION_USAGE (insn), insn, map, 1); + apply_change_group (); + } /* Show we don't know the value of anything stored or clobbered. */ note_stores (PATTERN (insn), mark_stores, NULL); |