public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] gcc/dwarf2out.cc detect and set language to Modula-2.
@ 2022-08-25 22:08 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-08-25 22:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6ed0a391b3fbaf14cd83a1bfd61976378c94ba7a

commit 6ed0a391b3fbaf14cd83a1bfd61976378c94ba7a
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Thu Aug 25 23:07:15 2022 +0100

    gcc/dwarf2out.cc detect and set language to Modula-2.
    
    Set language to Modula-2 in the debugging output.
    
    gcc/ChangeLog:
    
            * gcc/dwarf2out.cc (gen_compile_unit_die): Add clause to
            set language to DW_LANG_Modula2 if language_string is
            "GNU Modula-2".
    
    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>

Diff:
---
 gcc/dwarf2out.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc
index e3920c898f5..240e947ff03 100644
--- a/gcc/dwarf2out.cc
+++ b/gcc/dwarf2out.cc
@@ -25201,6 +25201,8 @@ gen_compile_unit_die (const char *filename)
     }
   else if (strcmp (language_string, "GNU F77") == 0)
     language = DW_LANG_Fortran77;
+  else if (strcmp (language_string, "GNU Modula-2") == 0)
+    language = DW_LANG_Modula2;
   else if (dwarf_version >= 3 || !dwarf_strict)
     {
       if (strcmp (language_string, "GNU Ada") == 0)

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

only message in thread, other threads:[~2022-08-25 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 22:08 [gcc/devel/modula-2] gcc/dwarf2out.cc detect and set language to Modula-2 Gaius Mulley

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).