diff options
author | Richard Biener <rguenther@suse.de> | 2016-04-29 08:08:45 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-04-29 08:08:45 +0000 |
commit | 59cf7a415cf212da56ea3ebd5b34063e84b9275f (patch) | |
tree | b5309ed056f90c186b04827497fec31b07772b34 /gcc | |
parent | 1d338e847d54717dca72ff12fb1e158d8189b140 (diff) | |
download | gcc-59cf7a415cf212da56ea3ebd5b34063e84b9275f.zip gcc-59cf7a415cf212da56ea3ebd5b34063e84b9275f.tar.gz gcc-59cf7a415cf212da56ea3ebd5b34063e84b9275f.tar.bz2 |
stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays.
2016-04-29 Richard Biener <rguenther@suse.de>
* stor-layout.c (layout_type): Do not build a pointer-to-element
type for arrays.
From-SVN: r235621
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stor-layout.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 984a703..268d487 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-29 Richard Biener <rguenther@suse.de> + + * stor-layout.c (layout_type): Do not build a pointer-to-element + type for arrays. + 2016-04-29 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2): diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index cba2e6f..02b8c64 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)) |