aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-05-31 11:16:37 -0600
committerJeff Law <law@redhat.com>2020-05-31 11:18:15 -0600
commitc25d0fa4d76cbc46078624d101ac019ff3df1142 (patch)
tree891b08fcc93545e2d2a8d02ad1c402c76a544dcf /gcc/rtl.h
parent05430b9b6a7c4aeaab595787ac1fbf6f3e0196a0 (diff)
downloadgcc-c25d0fa4d76cbc46078624d101ac019ff3df1142.zip
gcc-c25d0fa4d76cbc46078624d101ac019ff3df1142.tar.gz
gcc-c25d0fa4d76cbc46078624d101ac019ff3df1142.tar.bz2
Fix execute/20071219-1.c regression on H8 due to loss of REG_INC notes in peephole2.
gcc/ * lra.c (add_auto_inc_notes): Remove function. * reload1.c (add_auto_inc_notes): Similarly. Move into... * rtlanal.c (add_auto_inc_notes): New function. * rtl.h (add_auto_inc_notes): Add prototype. * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns as needed.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index b0b1aac..0872cc4 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3429,6 +3429,7 @@ extern rtx single_set_2 (const rtx_insn *, const_rtx);
extern bool contains_symbol_ref_p (const_rtx);
extern bool contains_symbolic_reference_p (const_rtx);
extern bool contains_constant_pool_address_p (const_rtx);
+extern void add_auto_inc_notes (rtx_insn *, rtx);
/* Handle the cheap and common cases inline for performance. */