public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17241] New: sh4 application SIGSEGV's with gcc-3.3.4 -O2
@ 2004-08-30 17:24 gp at qnx dot com
  2004-08-30 18:34 ` [Bug rtl-optimization/17241] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: gp at qnx dot com @ 2004-08-30 17:24 UTC (permalink / raw)
  To: gcc-bugs

A test case (src from libmad) SIGSEGV's when compiled with -O2.  It runs with -
O0.  It has the same behavior with gcc-3.3.1, gcc-3.3.3, and gcc-3.3.4 
targetting sh-unknown-nto-qnx6.3.0.  It looks like an sh optimization issue, 
and not qnx specific.

Command line (generates no errors or warnings):
sh-unknown-nto-qnx-6.3.0-gcc-3.3.4 bug.c -obug -ml -O2

The pre-processed source is large, as any changes I made to the original 
source made the SIGSEGV stop happening.

gdb output:
Program received signal SIGSEGV, Segmentation fault.
0x080409e4 in dct32 (in=0x8e4, slot=0, lo=0x803da64, hi=0xfffffff4) 
at /tmp/gccbug/bug.c:167
167       t86  = t65 + t66;  t109 = MUL(t65 - t66, costab20);
(gdb) bt
#0  0x080409e4 in dct32 (in=0x8e4, slot=0, lo=0x803da64, hi=0xfffffff4) 
at /tmp/
gccbug/bug.c:167
#1  0x080411b4 in main (argc=2276, argv=0x0) at /tmp/gccbug/bug.c:427
(gdb)

-- 
           Summary: sh4 application SIGSEGV's with gcc-3.3.4 -O2
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gp at qnx dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-nto-qnx6.3.0
  GCC host triplet: i386-pc-nto-qnx6.3.0
GCC target triplet: sh-unknown-nto-qnx6.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17241


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-17241-1665@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-05-17 14:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-30 17:24 [Bug c/17241] New: sh4 application SIGSEGV's with gcc-3.3.4 -O2 gp at qnx dot com
2004-08-30 18:34 ` [Bug rtl-optimization/17241] " pinskia at gcc dot gnu dot org
2004-08-30 19:07 ` gp at qnx dot com
2004-08-30 20:41 ` gp at qnx dot com
2004-08-30 20:42 ` gp at qnx dot com
2004-09-06  7:45 ` aheiner at harmanbecker dot com
2004-09-06  7:47 ` aheiner at harmanbecker dot com
2004-09-09  3:28 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17241-1665@http.gcc.gnu.org/bugzilla/>
2007-05-17 14:28 ` ebotcazou 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).