https://gcc.gnu.org/g:86eb3fb520b2a2026f6816ab51b88180b85d6882
commit r15-7956-g86eb3fb520b2a2026f6816ab51b88180b85d6882 Author: Jakub Jelinek <[email protected]> Date: Tue Mar 11 12:06:28 2025 +0100 dwarf2out: Fix up DW_AT_language for COBOL Seems the LANG_HOOKS_NAME change for COBOL broke debug info, in particular instead of DW_LANG_Cobol85 it is now DW_LANG_C. 2025-03-11 Jakub Jelinek <[email protected]> * dwarf2out.cc (gen_compile_unit_die): Use DW_LANG_Cobol85 if language_string is "GCC COBOL" rather than "Cobol". Diff: --- gcc/dwarf2out.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 42f72c1b89dd..e1c353258891 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -25448,7 +25448,7 @@ gen_compile_unit_die (const char *filename) } else if (strcmp (language_string, "GNU F77") == 0) language = DW_LANG_Fortran77; - else if (strcmp (language_string, "Cobol") == 0) + else if (strcmp (language_string, "GCC COBOL") == 0) language = DW_LANG_Cobol85; else if (strcmp (language_string, "GNU Modula-2") == 0) language = DW_LANG_Modula2;
