From: rguenth Date: Fri, 29 Apr 2016 08:08:45 +0000 (+0000) Subject: 2016-04-29 Richard Biener X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb13bff45b1ea57e8128d38fcd0ba37a30a17f26;p=thirdparty%2Fgcc.git 2016-04-29 Richard Biener * stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235621 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 984a7032794a..268d48779888 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 cba2e6f47c60..02b8c64e456b 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))