Hi,

This patches gen_compile_unit_die to use the DW_LANG_D DWARF language
code for D.  Is in relation to some other D language fixes that are
going to be submitted to gdb.

Regards
Iain.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 3448ec4..ddbf5de 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -19257,6 +19257,8 @@ gen_compile_unit_die (const char *filename)
     {
       if (strcmp (language_string, "GNU Ada") == 0)
 	language = DW_LANG_Ada95;
+      else if (strcmp (language_string, "GNU D") == 0)
+	language = DW_LANG_D;
       else if (strcmp (language_string, "GNU Fortran") == 0)
 	language = DW_LANG_Fortran95;
       else if (strcmp (language_string, "GNU Java") == 0)

Reply via email to