diff mbox series

sparc: Print out bit names for LEON and LEON3 with -mdebug

Message ID 20210915093610.3112669-2-cederman@gaisler.com
State Committed
Commit b7e0dd61e4ffa8787ef8fe7449dde36cc970653f
Headers show
Series sparc: Print out bit names for LEON and LEON3 with -mdebug | expand

Commit Message

Daniel Cederman Sept. 15, 2021, 9:36 a.m. UTC
From: Andreas Larsson <andreas@gaisler.com>

gcc/ChangeLog:

        * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
        LEON and LEON3.
---
 gcc/config/sparc/sparc.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Eric Botcazou Sept. 15, 2021, 10:19 a.m. UTC | #1
> gcc/ChangeLog:
> 
>         * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
>         LEON and LEON3.

OK everywhere.
diff mbox series

Patch

diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 06f41d7bb53..d5a0ff7d4ea 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -1596,6 +1596,10 @@  dump_target_flag_bits (const int flags)
     fprintf (stderr, "CBCOND ");
   if (flags & MASK_DEPRECATED_V8_INSNS)
     fprintf (stderr, "DEPRECATED_V8_INSNS ");
+  if (flags & MASK_LEON)
+    fprintf (stderr, "LEON ");
+  if (flags & MASK_LEON3)
+    fprintf (stderr, "LEON3 ");
   if (flags & MASK_SPARCLET)
     fprintf (stderr, "SPARCLET ");
   if (flags & MASK_SPARCLITE)