aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-12-29 00:17:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-29 00:17:55 +0000
commit3d2445684aebc421a96854d3b684afbbd4777ea8 (patch)
tree793f58ea69225d4f652e2ecb3178c43b2dc4606b /gcc
parent8d2fbf9b2d05a2fae47ba6c5454029a82f2fb111 (diff)
downloadgcc-3d2445684aebc421a96854d3b684afbbd4777ea8.zip
gcc-3d2445684aebc421a96854d3b684afbbd4777ea8.tar.gz
gcc-3d2445684aebc421a96854d3b684afbbd4777ea8.tar.bz2
* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
From-SVN: r182717
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2out.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9648baa..5e31912 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8de3613..850eb55 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);