From ad03019f927c620f0ff09bbbf49a293be08391e9 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 5 Dec 2025 12:56:22 +0100 Subject: [PATCH] libdw: Translate DW_LANG_Algol68 to DW_LNAME_Algol68 with lversion 1978 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 --- libdw/dwarf_srclang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdw/dwarf_srclang.c b/libdw/dwarf_srclang.c index 3df13757..aa1567fb 100644 --- a/libdw/dwarf_srclang.c +++ b/libdw/dwarf_srclang.c @@ -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; -- 2.47.3