public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/modula-2] gcc/dwarf2out.cc detect and set language to Modula-2.
Date: Thu, 25 Aug 2022 22:08:17 +0000 (GMT)	[thread overview]
Message-ID: <20220825220817.D3037385F015@sourceware.org> (raw)

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)

                 reply	other threads:[~2022-08-25 22:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220825220817.D3037385F015@sourceware.org \
    --to=gaius@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).