Check DECL_NAMELESS in modified_type_die
While working on a patch to the Ada compiler, I found a spot in dwarf2out.cc that calls add_name_attribute without respecting DECL_NAMELESS. gcc * dwarf2out.cc (modified_type_die): Check DECL_NAMELESS.
This commit is contained in:
parent
0455e85e4e
commit
5326306e7d
1 changed files with 1 additions and 0 deletions
|
@ -14019,6 +14019,7 @@ modified_type_die (tree type, int cv_quals, bool reverse,
|
|||
|| (cv_quals == TYPE_UNQUALIFIED)))
|
||||
|| (TREE_CODE (name) == TYPE_DECL
|
||||
&& DECL_NAME (name)
|
||||
&& !DECL_NAMELESS (name)
|
||||
&& (TREE_TYPE (name) == qualified_type
|
||||
|| (lang_hooks.types.get_debug_type
|
||||
&& (lang_hooks.types.get_debug_type (TREE_TYPE (name))
|
||||
|
|
Loading…
Add table
Reference in a new issue