This is the mail archive of the gcc-bugs@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]

[Bug c/27184] [4.0/4.1 Regression] Wrong code with pointers to arrays and types and strict aliasing



------- Comment #16 from rguenth at gcc dot gnu dot org  2006-10-16 11:18 -------
Subject: Bug 27184

Author: rguenth
Date: Mon Oct 16 11:18:28 2006
New Revision: 117782

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117782
Log:
2006-10-16  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        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

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/torture/pr27184.c
      - copied unchanged from r116116,
trunk/gcc/testsuite/gcc.dg/torture/pr27184.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-decl.c
    branches/gcc-4_1-branch/gcc/c-typeck.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/tree.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27184


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