From: Richard Biener Date: Fri, 29 Apr 2016 08:08:45 +0000 (+0000) Subject: stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59cf7a415cf212da56ea3ebd5b34063e84b9275f;p=gcc.git stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays. 2016-04-29 Richard Biener * stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays. From-SVN: r235621 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 984a7032794..268d4877988 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-29 Richard Biener + + * stor-layout.c (layout_type): Do not build a pointer-to-element + type for arrays. + 2016-04-29 Uros Bizjak * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2): diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index cba2e6f47c6..02b8c64e456 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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))