From: David Malcolm Date: Fri, 29 Aug 2014 00:12:44 +0000 (+0000) Subject: dfa_clear_single_insn_cache takes an rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbba639cdd2a5fe2b18cc0a0c3efed94d0f5e520;p=gcc.git dfa_clear_single_insn_cache takes an rtx_insn gcc/ 2014-08-28 David Malcolm * genattr.c (main): When writing out insn-attr.h, strengthen param of dfa_clear_single_insn_cache from rtx to rtx_insn *. * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when writing out the definition of dfa_clear_single_insn_cache to the generated insn-automata.c From-SVN: r214703 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 294c7e04690..470d0d32152 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-08-28 David Malcolm + + * genattr.c (main): When writing out insn-attr.h, strengthen param + of dfa_clear_single_insn_cache from rtx to rtx_insn *. + * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when + writing out the definition of dfa_clear_single_insn_cache to the + generated insn-automata.c + 2014-08-28 David Malcolm * resource.h (clear_hashed_info_for_insn): Strengthen param from diff --git a/gcc/genattr.c b/gcc/genattr.c index 44c9863b70d..5845dbb704b 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -321,7 +321,7 @@ main (int argc, char **argv) printf (" define_insn_reservation will be changed after\n"); printf (" last call of dfa_start. */\n"); printf ("extern void dfa_clean_insn_cache (void);\n\n"); - printf ("extern void dfa_clear_single_insn_cache (rtx);\n\n"); + printf ("extern void dfa_clear_single_insn_cache (rtx_insn *);\n\n"); printf ("/* Initiate and finish work with DFA. They should be\n"); printf (" called as the first and the last interface\n"); printf (" functions. */\n"); diff --git a/gcc/genautomata.c b/gcc/genautomata.c index 3cd4d3a5009..a4501e94a66 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -8731,7 +8731,7 @@ output_dfa_clean_insn_cache_func (void) DFA_INSN_CODES_VARIABLE_NAME, I_VARIABLE_NAME); fprintf (output_file, - "void\n%s (rtx %s)\n{\n int %s;\n\n", + "void\n%s (rtx_insn *%s)\n{\n int %s;\n\n", DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME, INSN_PARAMETER_NAME, I_VARIABLE_NAME); fprintf (output_file,