This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32230] New: [4.3 Regression] Segfault in set_bb_for_stmt with -O -ftree-vectorize
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2007 07:52:11 -0000
- Subject: [Bug tree-optimization/32230] New: [4.3 Regression] Segfault in set_bb_for_stmt with -O -ftree-vectorize
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm getting the following segfault on trunk with -O -ftree-vectorize.
This was introduced between 20070422 and 20070515.
(sid)25522:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -O -ftree-vectorize -c
glame-waveform.c
glame-waveform.c: In function 'const_f':
glame-waveform.c:18: warning: comparison of distinct pointer types lacks a cast
glame-waveform.c:12: internal compiler error: Segmentation fault
Please submit a full bug report, [...]
(sid)25523:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -ftree-vectorize -c
glame-waveform.c
glame-waveform.c: In function 'const_f':
glame-waveform.c:18: warning: comparison of distinct pointer types lacks a cast
(sid)25524:tbm@em64t: ~]
Testcase:
typedef struct filter_buffer filter_buffer_t;
struct filter_buffer
{
char buf[1];
};
typedef struct sbuf_header sbuf_header_t;
struct sbuf_header
{
char buf[1];
}
const_f (filter_buffer_t *buf)
{
float val;
int i;
for (i = 0; i < 10; i++)
((float
*) (&((sbuf_header_t *) ((buf) == &(buf)->buf[0]))->buf[0]))[i] = val;
}
--
Summary: [4.3 Regression] Segfault in set_bb_for_stmt with -O -
ftree-vectorize
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32230