mirror of git://gcc.gnu.org/git/gcc.git
re PR c/68162 (Incompatible pointer type using a typedef)
2015-11-30 Richard Biener <rguenther@suse.de> PR c/68162 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays. From-SVN: r231058
This commit is contained in:
parent
6b8320bc8b
commit
cee532f01d
|
|
@ -1,3 +1,9 @@
|
||||||
|
2015-11-30 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR c/68162
|
||||||
|
* dwarf2out.c (gen_type_die_with_usage): Keep variant types
|
||||||
|
of arrays.
|
||||||
|
|
||||||
2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
|
2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
|
||||||
|
|
||||||
* tree-if-conv.c (struct ifc_dr): Add new tree
|
* tree-if-conv.c (struct ifc_dr): Add new tree
|
||||||
|
|
|
||||||
|
|
@ -20798,9 +20798,10 @@ gen_type_die_with_usage (tree type, dw_die_ref context_die,
|
||||||
/* We are going to output a DIE to represent the unqualified version
|
/* We are going to output a DIE to represent the unqualified version
|
||||||
of this type (i.e. without any const or volatile qualifiers) so
|
of this type (i.e. without any const or volatile qualifiers) so
|
||||||
get the main variant (i.e. the unqualified version) of this type
|
get the main variant (i.e. the unqualified version) of this type
|
||||||
now. (Vectors are special because the debugging info is in the
|
now. (Vectors and arrays are special because the debugging info is in the
|
||||||
cloned type itself). */
|
cloned type itself). */
|
||||||
if (TREE_CODE (type) != VECTOR_TYPE)
|
if (TREE_CODE (type) != VECTOR_TYPE
|
||||||
|
&& TREE_CODE (type) != ARRAY_TYPE)
|
||||||
type = type_main_variant (type);
|
type = type_main_variant (type);
|
||||||
|
|
||||||
/* If this is an array type with hidden descriptor, handle it first. */
|
/* If this is an array type with hidden descriptor, handle it first. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue