public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/32218]  New: [4.2/4.3 Regression] segfault with -O1 -ftree-vectorize
@ 2007-06-05  8:31 tbm at cyrius dot com
  2007-06-06 23:44 ` [Bug target/32218] " sje at cup dot hp dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: tbm at cyrius dot com @ 2007-06-05  8:31 UTC (permalink / raw)
  To: gcc-bugs

I'm getting the following segfault on IA-64 with current 4.2 and 4.3.
This goes back at least to 20060721 - I don't have anything older to
test here at the moment.  I don't see this segfault on x86_64.

Unfortunately I don't have a working gdb on ia-64 at the moment so
I cannot supply a backtrace.

tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O1 -ftree-vectorize
/home/tbm/poc-streamer-ogg-write.c
/home/tbm/poc-streamer-ogg-write.c: In function 'ogg_fill_page_hdr':
/home/tbm/poc-streamer-ogg-write.c:14: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.

Testcase:


typedef struct buf_s
{
  unsigned long size;
}
buf_t;
typedef struct ogg_page_s
{
  unsigned char page_segments;
  unsigned char lacing_values[255];
  buf_t raw;
}
ogg_page_t;
ogg_fill_page_hdr (ogg_page_t *page)
{
  unsigned long size = page->page_segments;
  int i;
  for (i = 0; i < page->page_segments; i++)
    size += page->lacing_values[i];
  if (page->raw.size < size)
    for (i = 0; i < page->page_segments; i++)
        continue;
}


-- 
           Summary: [4.2/4.3 Regression] segfault with -O1 -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=32218


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-07-30 15:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05  8:31 [Bug tree-optimization/32218] New: [4.2/4.3 Regression] segfault with -O1 -ftree-vectorize tbm at cyrius dot com
2007-06-06 23:44 ` [Bug target/32218] " sje at cup dot hp dot com
2007-06-30  9:15 ` pinskia at gcc dot gnu dot org
2007-07-01 11:23 ` dorit at gcc dot gnu dot org
2007-07-01 11:32 ` tbm at cyrius dot com
2007-07-01 11:33 ` tbm at cyrius dot com
2007-07-03 20:19 ` sje at cup dot hp dot com
2007-07-04  3:24 ` mmitchel at gcc dot gnu dot org
2007-07-20  3:52 ` mmitchel at gcc dot gnu dot org
2007-07-24  8:53 ` dorit at gcc dot gnu dot org
2007-07-24 18:37 ` tbm at cyrius dot com
2007-07-25 16:20 ` sje at cup dot hp dot com
2007-07-25 20:24 ` sje at gcc dot gnu dot org
2007-07-26 16:30 ` sje at cup dot hp dot com
2007-07-26 16:38 ` pluto at agmk dot net
2007-07-26 16:44 ` sje at cup dot hp dot com
2007-07-30 15:16 ` sje 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).