Commit 3d244568 by Ian Lance Taylor Committed by Ian Lance Taylor

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

From-SVN: r182717
parent 8d2fbf9b
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> 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/51623 PR target/51623
...@@ -18433,6 +18433,11 @@ gen_compile_unit_die (const char *filename) ...@@ -18433,6 +18433,11 @@ gen_compile_unit_die (const char *filename)
language = DW_LANG_ObjC; language = DW_LANG_ObjC;
else if (strcmp (language_string, "GNU Objective-C++") == 0) else if (strcmp (language_string, "GNU Objective-C++") == 0)
language = DW_LANG_ObjC_plus_plus; 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); add_AT_unsigned (die, DW_AT_language, language);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment