This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13475] New: ICE on SIMD variables with partial value initialization
- From: "gandalf at winds dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2003 04:12:32 -0000
- Subject: [Bug c/13475] New: ICE on SIMD variables with partial value initialization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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