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
This commit is contained in:
parent
4df9c41de5
commit
834eb1f02c
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user