* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.

From-SVN: r182717
This commit is contained in:
Ian Lance Taylor 2011-12-29 00:17:55 +00:00 committed by Ian Lance Taylor
parent 8d2fbf9b2d
commit 3d2445684a
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2011-12-28 Ian Lance Taylor <iant@google.com>
* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/51623

View file

@ -18433,6 +18433,11 @@ gen_compile_unit_die (const char *filename)
language = DW_LANG_ObjC;
else if (strcmp (language_string, "GNU Objective-C++") == 0)
language = DW_LANG_ObjC_plus_plus;
else if (dwarf_version >= 5 || !dwarf_strict)
{
if (strcmp (language_string, "GNU Go") == 0)
language = DW_LANG_Go;
}
}
add_AT_unsigned (die, DW_AT_language, language);