This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 233/236] dfa_clear_single_insn_cache takes an rtx_insn

The callsite using dfa_clear_single_insn_cache in haifa-sched.c is now
passing in an rtx_insn *.

	* 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
 gcc/genattr.c     | 2 +-
 gcc/genautomata.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/genattr.c b/gcc/genattr.c
index 44c9863..5845dbb 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 3017e20..bcee27d 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -8731,7 +8731,7 @@ output_dfa_clean_insn_cache_func (void)
   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",
   fprintf (output_file,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]