public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1};
@ 2007-04-06 22:05 pinskia at gcc dot gnu dot org
2009-04-15 22:11 ` [Bug c/31499] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-06 22:05 UTC (permalink / raw)
To: gcc-bugs
Testcase:
#define vector __attribute__((__vector_size__(16) ))
vector signed int v1[]={0,1,2,3,4,5,6,7};
The reason why I am saying this is valid code is two fold, one the C/C++
Language extension for CBEA says this is valid code and two the C++ front-end
accepts this.
--
Summary: rejects vector int a[] = {1,1,1,1,1};
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/31499] rejects vector int a[] = {1,1,1,1,1};
2007-04-06 22:05 [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1}; pinskia at gcc dot gnu dot org
@ 2009-04-15 22:11 ` pinskia at gcc dot gnu dot org
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-15 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-15 22:11 -------
Testing a fix for this.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-04-15 22:11:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/31499] rejects vector int a[] = {1,1,1,1,1};
2007-04-06 22:05 [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1}; pinskia at gcc dot gnu dot org
2009-04-15 22:11 ` [Bug c/31499] " pinskia at gcc dot gnu dot org
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
@ 2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
2009-12-07 22:21 ` uweigand at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-22 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-04-22 23:23 -------
Subject: Bug 31499
Author: pinskia
Date: Wed Apr 22 23:22:53 2009
New Revision: 146628
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146628
Log:
2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31499
* c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
value is a VECTOR_CST, the element type is the element type of the
vector.
2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31499
* gcc.dg/vector-init-1.c: New testcase.
* gcc.dg/vector-init-2.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/vector-init-1.c
trunk/gcc/testsuite/gcc.dg/vector-init-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/31499] rejects vector int a[] = {1,1,1,1,1};
2007-04-06 22:05 [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1}; pinskia at gcc dot gnu dot org
2009-04-15 22:11 ` [Bug c/31499] " pinskia at gcc dot gnu dot org
@ 2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
2009-12-07 22:21 ` uweigand at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-22 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-22 23:23 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31499
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/31499] rejects vector int a[] = {1,1,1,1,1};
2007-04-06 22:05 [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1}; pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
@ 2009-12-07 22:21 ` uweigand at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: uweigand at gcc dot gnu dot org @ 2009-12-07 22:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from uweigand at gcc dot gnu dot org 2009-12-07 22:20 -------
Subject: Bug 31499
Author: uweigand
Date: Mon Dec 7 22:20:06 2009
New Revision: 155055
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155055
Log:
2008-12-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Backport from mainline:
gcc/
2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
* c-typeck.c (build_binary_op): Allow % on integal vectors.
* doc/extend.texi (Vector Extension): Document that % is allowed too.
gcc/cp/
2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
* typeck.c (build_binary_op): Allow % on integal vectors.
gcc/testsuite/
2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
* gcc.dg/vector-4.c: New testcase.
* gcc.dg/simd-1b.c: % is now allowed for integer vectors.
* g++.dg/ext/vector16.C: New testcase.
2008-12-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Backport from mainline:
gcc/
2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31499
* c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
value is a VECTOR_CST, the element type is the element type of the
vector.
gcc/testsuite/
2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31499
* gcc.dg/vector-init-1.c: New testcase.
* gcc.dg/vector-init-2.c: New testcase.
2008-12-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Update to gcc-4_4-branch revision 155038.
Added:
branches/cell-4_4-branch/gcc/testsuite/g++.dg/ext/vector16.C
branches/cell-4_4-branch/gcc/testsuite/gcc.dg/vector-4.c
branches/cell-4_4-branch/gcc/testsuite/gcc.dg/vector-init-1.c
branches/cell-4_4-branch/gcc/testsuite/gcc.dg/vector-init-2.c
Modified:
branches/cell-4_4-branch/ (props changed)
branches/cell-4_4-branch/ChangeLog.cell
branches/cell-4_4-branch/gcc/ChangeLog
branches/cell-4_4-branch/gcc/DATESTAMP
branches/cell-4_4-branch/gcc/c-typeck.c
branches/cell-4_4-branch/gcc/config/i386/i386.md
branches/cell-4_4-branch/gcc/cp/typeck.c
branches/cell-4_4-branch/gcc/doc/extend.texi
branches/cell-4_4-branch/gcc/testsuite/gcc.dg/simd-1b.c
branches/cell-4_4-branch/gcc/tree-ssa-dom.c
Propchange: branches/cell-4_4-branch/
('svnmerge-integrated' modified)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31499
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-07 22:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 22:05 [Bug c/31499] New: rejects vector int a[] = {1,1,1,1,1}; pinskia at gcc dot gnu dot org
2009-04-15 22:11 ` [Bug c/31499] " pinskia at gcc dot gnu dot org
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
2009-04-22 23:23 ` pinskia at gcc dot gnu dot org
2009-12-07 22:21 ` uweigand at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).