This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ping a wrong code regression patch


On 8/13/06, Andrew Pinski <pinskia@physics.uc.edu> wrote:
Sorry for breaking the thread, I lost the old email:
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01194.html


Here is the patch I applied after a bootstrap and test on i686-linux-gnu.

Thanks,
Andrew Pinski

ChangeLog:
        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.

testsuite/ChangeLog:
        Alexandre Oliva  <aoliva@redhat.com>

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

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to the 4.1 branch.


Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]