[Bug middle-end/29092] [4.0/4.1 Regression] vector int a = (vector int) { 1,1,2,2} is rejected as non constant

2006-10-25 Thread bonzini at gcc dot gnu dot org


--- 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=gccview=revrev=118025
Log:
2006-10-25  Paolo Bonzini  [EMAIL PROTECTED]

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  [EMAIL PROTECTED]

* 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



[Bug middle-end/29092] [4.0/4.1 Regression] vector int a = (vector int) { 1,1,2,2} is rejected as non constant

2006-10-14 Thread pinskia at gcc dot gnu dot org


--- Comment #8 from pinskia at gcc dot gnu dot org  2006-10-15 04:04 ---
http://gcc.gnu.org/ml/gcc-cvs/2006-10/msg00362.html


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail|4.0.0 4.1.0 4.2.0   |4.0.0 4.1.0
  Known to work|3.4.0   |3.4.0 4.2.0
Summary|[4.0/4.1/4.2 Regression]|[4.0/4.1 Regression] vector
   |vector int a = (vector int) |int a = (vector int) {
   |{ 1,1,2,2} is rejected as   |1,1,2,2} is rejected as non
   |non constant|constant


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