diff options
author | Graham Stott <graham.stott@btinternet.com> | 2004-05-03 13:13:15 +0000 |
---|---|---|
committer | Graham Stott <grahams@gcc.gnu.org> | 2004-05-03 13:13:15 +0000 |
commit | 834eb1f02c99c7d03524e02b7dd482dc0c0e827a (patch) | |
tree | 9132a5335d7b89e455d191c281fd4c53519709bc /gcc | |
parent | 4df9c41de5ca5a3a3d6b27d3945e2d9401f115c5 (diff) | |
download | gcc-834eb1f02c99c7d03524e02b7dd482dc0c0e827a.zip gcc-834eb1f02c99c7d03524e02b7dd482dc0c0e827a.tar.gz gcc-834eb1f02c99c7d03524e02b7dd482dc0c0e827a.tar.bz2 |
re PR debug/14718 (ICE in force_decl_die (dwarf2out.c))
PR 14718
* dwarf2out.c (dwarf2out_imported_module_or_decl): Use
force_type_die for CONST_DECL.
From-SVN: r81431
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb21d0c4..a80c5fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-05-03 Graham Stott <graham.stott@btinternet.com> + + PR 14718 + * dwarf2out.c (dwarf2out_imported_module_or_decl): Use + force_type_die for CONST_DECL. + 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr> Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 7f234ee..7af0eb3 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12781,8 +12781,8 @@ dwarf2out_imported_module_or_decl (tree decl, tree context) else scope_die = force_decl_die (context); - /* For TYPE_DECL, lookup TREE_TYPE. */ - if (TREE_CODE (decl) == TYPE_DECL) + /* For TYPE_DECL or CONST_DECL, lookup TREE_TYPE. */ + if (TREE_CODE (decl) == TYPE_DECL || TREE_CODE (decl) == CONST_DECL) at_import_die = force_type_die (TREE_TYPE (decl)); else at_import_die = force_decl_die (decl); |