]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdw: Translate DW_LANG_Algol68 to DW_LNAME_Algol68 with lversion 1978
authorMark Wielaard <mark@klomp.org>
Fri, 5 Dec 2025 11:56:22 +0000 (12:56 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 5 Dec 2025 11:56:25 +0000 (12:56 +0100)
1978 is the year of the publication of the Revised Report that defines
the revised language. And this is the version set by gcc a68. So when
we see DW_LANG_Algol68 we translate it to DW_LNAME_Algol68 with
lversion set to 1978 to match gcc a68.

* libdw/dwarf_srclang.c (srclang_to_language): Set lversion to
        1978 for DW_LANG_Algol68.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/dwarf_srclang.c

index 3df13757be67df7aa2806bfbe372041149755494..aa1567fbbf29351e04c0663dc31d45f987bee6d7 100644 (file)
@@ -309,7 +309,7 @@ static int srclang_to_language (Dwarf_Word srclang,
       return 0;
     case DW_LANG_Algol68:
       *lname = DW_LNAME_Algol68;
-      *lversion = 0;
+      *lversion = 1978; /* Year of the Revised Report for revised language.  */
       return 0;
     case DW_LANG_Nim:
       *lname = DW_LNAME_Nim;