OSDN Git Service

2006-08-13 Alexandre Oliva <aoliva@redhat.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Aug 2006 20:16:46 +0000 (20:16 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Aug 2006 20:16:46 +0000 (20:16 +0000)
commitce675af0d6902b969d704377961bd4211a0105a1
tree872017de3d83c2f55ee00df495e2809bd786b19c
parent138fbfd03489528c7f71b4c9e755fb1da3e0e277
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116116 138bc75d-0d04-0410-961f-82ee72b054a4
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