From: Ian Lance Taylor Date: Thu, 29 Dec 2011 00:17:55 +0000 (+0000) Subject: * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go. X-Git-Tag: releases/gcc-4.7.0~1284 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d2445684aebc421a96854d3b684afbbd4777ea8;p=thirdparty%2Fgcc.git * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go. From-SVN: r182717 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9648baa2055b..5e319121cb49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-12-28 Ian Lance Taylor + + * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go. + 2011-12-28 Michael Meissner PR target/51623 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8de36137e335..850eb5562172 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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);