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 middle-end/29092] [4.0/4.1 Regression] vector int a = (vector int) { 1,1,2,2} is rejected as non constant



------- Comment #9 from bonzini at gnu dot org  2006-10-25 08:11 -------
Subject: Bug 29092

Author: bonzini
Date: Wed Oct 25 08:11:26 2006
New Revision: 118025

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118025
Log:
2006-10-25  Paolo Bonzini  <bonzini@gnu.org>

        PR c/29092

        * c-typeck.c (digest_init): Always allow initializing vectors
        that have static storage duration with compound literals.
        * tree.c (build_type_attribute_qual_variant): New, based on
        build_type_attribute_variant.
        (build_type_attribute_variant): Rewrite using the former.
        (make_vector_type): Use build_type_attribute_qual_variant to build
        type variants.  Use type_hash_canon on the others.

2006-10-25  Paolo Bonzini  <bonzini@gnu.org>

        * gcc.dg/simd-5.c, gcc.dg/simd-6: New testcases.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/simd-5.c
      - copied unchanged from r117696, trunk/gcc/testsuite/gcc.dg/simd-5.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/simd-6.c
      - copied unchanged from r117696, trunk/gcc/testsuite/gcc.dg/simd-6.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    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=29092


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