From fb13bff45b1ea57e8128d38fcd0ba37a30a17f26 Mon Sep 17 00:00:00 2001 From: rguenth Date: Fri, 29 Apr 2016 08:08:45 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/stor-layout.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) 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)) -- 2.47.3