public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/34732]  New: Optimization flag trigger unexpected crash
@ 2008-01-10 19:27 ijeukens at yahoo dot com dot br
  2008-01-10 19:28 ` [Bug c/34732] " ijeukens at yahoo dot com dot br
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ijeukens at yahoo dot com dot br @ 2008-01-10 19:27 UTC (permalink / raw)
  To: gcc-bugs

This is the core of the problem (at comp_0.c):

...
for(j = 0;j < 3;j++) {
   comp_0_fptr[j][1]();
}
...

     comp_0_fptr holds pointers to void functions. When compiling with -g,
everything works ok. Compiling with -O2, or any other, the effect that I get
is:

   comp_0_fptr[0][1]();
   comp_0_fptr[1][1]();
   comp_0_fptr[1][1]();  

   and not comp_0_fptr[2][1](); at the last statement.


-- 
           Summary: Optimization flag trigger unexpected crash
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ijeukens at yahoo dot com dot br
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

end of thread, other threads:[~2008-01-11 11:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-10 19:27 [Bug c/34732] New: Optimization flag trigger unexpected crash ijeukens at yahoo dot com dot br
2008-01-10 19:28 ` [Bug c/34732] " ijeukens at yahoo dot com dot br
2008-01-10 19:28 ` [Bug middle-end/34732] " pinskia at gcc dot gnu dot org
2008-01-10 20:05 ` ijeukens at yahoo dot com dot br
2008-01-10 20:15 ` ijeukens at yahoo dot com dot br
2008-01-10 20:17 ` ijeukens at yahoo dot com dot br
2008-01-10 20:22 ` ijeukens at yahoo dot com dot br
2008-01-11 12:56 ` ijeukens at yahoo dot com dot br

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).