diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-06-22 07:18:50 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-06-22 07:18:50 +0000 |
commit | c43470b1f6bf8f1c89044f10bf4d6f899dfc6c15 (patch) | |
tree | 3aa69431ae858929b93fe2cf13ec8d13e2ceb468 | |
parent | a300e4591c24487929d384141c3294793e37e93a (diff) | |
download | gcc-c43470b1f6bf8f1c89044f10bf4d6f899dfc6c15.zip gcc-c43470b1f6bf8f1c89044f10bf4d6f899dfc6c15.tar.gz gcc-c43470b1f6bf8f1c89044f10bf4d6f899dfc6c15.tar.bz2 |
re PR debug/53704 (ICE: in based_loc_descr, at dwarf2out.c:10027 after revision 188621)
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8326b55..1b32a58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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 DECL_IGNORED_P non-reg vars even if they are used. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2b9971f..282a0e5 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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); |