public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13475] New: ICE on SIMD variables with partial value initialization
@ 2003-12-23 5:32 gandalf at winds dot org
2003-12-23 5:49 ` [Bug c/13475] [3.3 Regression] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gandalf at winds dot org @ 2003-12-23 5:32 UTC (permalink / raw)
To: gcc-bugs
The following code crashes the GCC 3.3.2 compiler when variable 'a' is
initialized with an incomplete list of values. Normally, the rest of the values
in a structure are assumed to be zeroed if left unspecified. The compiler does
not crash if the {1} below is edited to a {0}. The crash appears to happen
regardless of the -march or -mcpu setting.
typedef int v8qi __attribute__((mode(V8QI)));
int main()
{
v8qi a={1};
}
Compiling displays the following:
simd.c: In function `main':
simd.c:5: warning: unused variable `a'
simd.c:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE on SIMD variables with partial value initialization
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gandalf at winds dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux-gnu
GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13475
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/13475] [3.3 Regression] ICE on SIMD variables with partial value initialization
2003-12-23 5:32 [Bug c/13475] New: ICE on SIMD variables with partial value initialization gandalf at winds dot org
@ 2003-12-23 5:49 ` pinskia at gcc dot gnu dot org
2003-12-23 18:47 ` [Bug middle-end/13475] " cvs-commit at gcc dot gnu dot org
2003-12-23 18:55 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 5:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 05:06 -------
Confirmed, A regression from 3.3.
>From Phil's regression hunter: Search converges between 2003-07-24-3.3 (#174) and 2003-07
-25-3.3 (#175).
Patch which caused this: <http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02401.html>.
Fixed on the mainline: Search converges between 2003-06-19-trunk (#318) and 2003-06-20-
trunk (#319).
Patch which fixed it on the mainline: <http://gcc.gnu.org/ml/gcc-patches/2003-06/
msg02231.html>.
I will take care of back porting this patch (it is a small one).
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-12-23 05:06:39
date| |
Summary|ICE on SIMD variables with |[3.3 Regression] ICE on SIMD
|partial value initialization|variables with partial value
| |initialization
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13475
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/13475] [3.3 Regression] ICE on SIMD variables with partial value initialization
2003-12-23 5:32 [Bug c/13475] New: ICE on SIMD variables with partial value initialization gandalf at winds dot org
2003-12-23 5:49 ` [Bug c/13475] [3.3 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-23 18:47 ` cvs-commit at gcc dot gnu dot org
2003-12-23 18:55 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-23 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-23 18:41 -------
Subject: Bug 13475
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: pinskia@gcc.gnu.org 2003-12-23 18:41:00
Modified files:
gcc : expr.c ChangeLog
Log message:
2003-12-23 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/13475
Backport from mainline:
2003-06-19 Aldy Hernandez <aldyh@redhat.com>
* expr.c (const_vector_from_tree): Initialize remaining elements
to 0.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.498.2.23&r2=1.498.2.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.859&r2=1.16114.2.860
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13475
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/13475] [3.3 Regression] ICE on SIMD variables with partial value initialization
2003-12-23 5:32 [Bug c/13475] New: ICE on SIMD variables with partial value initialization gandalf at winds dot org
2003-12-23 5:49 ` [Bug c/13475] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-12-23 18:47 ` [Bug middle-end/13475] " cvs-commit at gcc dot gnu dot org
@ 2003-12-23 18:55 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 18:41 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13475
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-23 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-23 5:32 [Bug c/13475] New: ICE on SIMD variables with partial value initialization gandalf at winds dot org
2003-12-23 5:49 ` [Bug c/13475] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-12-23 18:47 ` [Bug middle-end/13475] " cvs-commit at gcc dot gnu dot org
2003-12-23 18:55 ` pinskia 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).