public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5058] Make genautomata.cc output reflect insn-attr.h expectation
@ 2023-11-01 17:21 Edwin Lu
  0 siblings, 0 replies; only message in thread
From: Edwin Lu @ 2023-11-01 17:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:25f92179dea3080788c83743823c1decd84fee23

commit r14-5058-g25f92179dea3080788c83743823c1decd84fee23
Author: Edwin Lu <ewlu@rivosinc.com>
Date:   Wed Nov 1 10:19:14 2023 -0700

    Make genautomata.cc output reflect insn-attr.h expectation
    
    genautomata was writing the insn_has_dfa_reservation_p function
    inside of the CPU_UNITS_QUERY conditional when it shouldn't have.
    Move insn_has_dfa_reservation_p outside of conditional group.
    
    gcc/ChangeLog:
    
            * genautomata.cc (write_automata): move endif
    
    Signed-off-by: Edwin Lu <ewlu@rivosinc.com>

Diff:
---
 gcc/genautomata.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/genautomata.cc b/gcc/genautomata.cc
index 72f01686d6ba..9dda25e5ba26 100644
--- a/gcc/genautomata.cc
+++ b/gcc/genautomata.cc
@@ -9503,9 +9503,9 @@ write_automata (void)
   fprintf (output_file, "\n#if %s\n\n", CPU_UNITS_QUERY_MACRO_NAME);
   output_get_cpu_unit_code_func ();
   output_cpu_unit_reservation_p ();
-  output_insn_has_dfa_reservation_p ();
   fprintf (output_file, "\n#endif /* #if %s */\n\n",
 	   CPU_UNITS_QUERY_MACRO_NAME);
+  output_insn_has_dfa_reservation_p ();
   output_dfa_clean_insn_cache_func ();
   output_dfa_start_func ();
   output_dfa_finish_func ();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-01 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01 17:21 [gcc r14-5058] Make genautomata.cc output reflect insn-attr.h expectation Edwin Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).