]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR c/27184 (Wrong code with pointers to arrays and types and strict aliasing)
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 13 Aug 2006 20:16:46 +0000 (20:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 13 Aug 2006 20:16:46 +0000 (13:16 -0700)
commit8d9f82d59362f88ccf848a76285ae44024981ac0
tree872017de3d83c2f55ee00df495e2809bd786b19c
parent0bff60e5b729caa36d6669be4a964b87a9b6081b
re PR c/27184 (Wrong code with pointers to arrays and types and strict aliasing)

2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
            Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27184
        * tree.c (build_array_type): Unify array types with
        unspecified index_type.
        * c-decl.c (grokdeclarator): Make sure we do not modify a
        unified incomplete array type.
        * c-typeck.c (store_init_value): Create distinct type before
        filling in the index type in an initializer from a compound
        literal.

        * c-decl.c (grokdeclarator): Remove code where we copy the
        array type over.

2006-08-13  Alexandre Oliva  <aoliva@redhat.com>

        PR c/27184
        * gcc.dg/torture/pr27184.c: New test

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
From-SVN: r116116
gcc/ChangeLog
gcc/c-decl.c
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr27184.c [new file with mode: 0644]
gcc/tree.c