This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Do not build a pointer-to-element type for arrays in layout_type
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Apr 2016 15:56:19 +0200 (CEST)
- Subject: [PATCH] Do not build a pointer-to-element type for arrays in layout_type
- Authentication-results: sourceware.org; auth=none
I stumbled over this odd call, present since CVS repo import (r348).
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
Richard.
2016-04-28 Richard Biener <rguenther@suse.de>
* stor-layout.c (layout_type): Do not build a pointer-to-element
type for arrays.
Index: gcc/stor-layout.c
===================================================================
--- gcc/stor-layout.c (revision 235557)
+++ gcc/stor-layout.c (working copy)
@@ -2243,8 +2243,6 @@ layout_type (tree type)
tree index = TYPE_DOMAIN (type);
tree element = TREE_TYPE (type);
- build_pointer_type (element);
-
/* We need to know both bounds in order to compute the size. */
if (index && TYPE_MAX_VALUE (index) && TYPE_MIN_VALUE (index)
&& TYPE_SIZE (element))