aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-11-30 08:24:06 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-11-30 08:24:06 +0000
commitcee532f01d88281a009740daddf66516be46f9b0 (patch)
treebd246b1579386997064d6d95219f8a92c6c733a1 /gcc
parent6b8320bc8bff1f2d0aa8229b7a44c7a713fd8ad4 (diff)
downloadgcc-cee532f01d88281a009740daddf66516be46f9b0.zip
gcc-cee532f01d88281a009740daddf66516be46f9b0.tar.gz
gcc-cee532f01d88281a009740daddf66516be46f9b0.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b93648..cbd3000 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
* tree-if-conv.c (struct ifc_dr): Add new tree
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index add2204..357f114 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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
of this type (i.e. without any const or volatile qualifiers) so
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). */
- if (TREE_CODE (type) != VECTOR_TYPE)
+ if (TREE_CODE (type) != VECTOR_TYPE
+ && TREE_CODE (type) != ARRAY_TYPE)
type = type_main_variant (type);
/* If this is an array type with hidden descriptor, handle it first. */