stor-layout.c (layout_type): Do not build a pointer-to-element type for arrays.
authorRichard Biener <rguenther@suse.de>
Fri, 29 Apr 2016 08:08:45 +0000 (08:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 29 Apr 2016 08:08:45 +0000 (08:08 +0000)
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

gcc/ChangeLog
gcc/stor-layout.c

index 984a7032794ada68a45a48d48511fe7c055df3b4..268d4877988836a4a2f098e8f285df4752118235 100644 (file)
@@ -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):
index cba2e6f47c60d60d531f787cfaaa4d4ffe667f6f..02b8c64e456b5f20d7b7cd6bf2163581bf25ccad 100644 (file)
@@ -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))