]> gcc.gnu.org Git - gcc.git/commitdiff
re PR debug/53704 (ICE: in based_loc_descr, at dwarf2out.c:10027 after revision 188621)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 22 Jun 2012 07:18:50 +0000 (07:18 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 22 Jun 2012 07:18:50 +0000 (07:18 +0000)
PR debug/53704
* dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
for GNU Fortran if in strict DWARF2 mode.

From-SVN: r188874

gcc/ChangeLog
gcc/dwarf2out.c

index 8326b55101a242c774367b64865a889f54fdf35b..1b32a583d49103f83ae0691b2bd41f9359a67395 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR debug/53704
+       * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
+       for GNU Fortran if in strict DWARF2 mode.
+
 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
index 2b9971f1857a75634ada75001c447cb7065ff1ed..282a0e507c8d84932f4263395e892836c2e101e7 100644 (file)
@@ -18220,6 +18220,9 @@ gen_compile_unit_die (const char *filename)
            language = DW_LANG_Go;
        }
     }
+  /* Use a degraded Fortran setting in strict DWARF2 so is_fortran works.  */
+  else if (strcmp (language_string, "GNU Fortran") == 0)
+    language = DW_LANG_Fortran90;
 
   add_AT_unsigned (die, DW_AT_language, language);
 
This page took 0.111396 seconds and 5 git commands to generate.