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 middle-end/34732] " pinskia at gcc dot gnu dot org ` (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
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 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 ` pinskia at gcc dot gnu dot org 2008-01-10 19:28 ` [Bug c/34732] " ijeukens at yahoo dot com dot br ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-01-10 19:28 UTC (permalink / raw) To: gcc-bugs -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal Component|c |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/34732] Optimization flag trigger unexpected crash 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 middle-end/34732] " pinskia at gcc dot gnu dot org @ 2008-01-10 19:28 ` ijeukens at yahoo dot com dot br 2008-01-10 20:05 ` [Bug middle-end/34732] " ijeukens at yahoo dot com dot br ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-10 19:28 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from ijeukens at yahoo dot com dot br 2008-01-10 19:24 ------- Created an attachment (id=14910) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14910&action=view) execution output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 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 middle-end/34732] " pinskia at gcc dot gnu dot org 2008-01-10 19:28 ` [Bug c/34732] " ijeukens at yahoo dot com dot br @ 2008-01-10 20:05 ` ijeukens at yahoo dot com dot br 2008-01-10 20:15 ` ijeukens at yahoo dot com dot br ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-10 20:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from ijeukens at yahoo dot com dot br 2008-01-10 19:26 ------- Created an attachment (id=14911) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14911&action=view) source 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 2008-01-10 19:27 [Bug c/34732] New: Optimization flag trigger unexpected crash ijeukens at yahoo dot com dot br ` (2 preceding siblings ...) 2008-01-10 20:05 ` [Bug middle-end/34732] " 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 ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-10 20:15 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from ijeukens at yahoo dot com dot br 2008-01-10 19:27 ------- Created an attachment (id=14912) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14912&action=view) source 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 2008-01-10 19:27 [Bug c/34732] New: Optimization flag trigger unexpected crash ijeukens at yahoo dot com dot br ` (3 preceding siblings ...) 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 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-10 20:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from ijeukens at yahoo dot com dot br 2008-01-10 19:27 ------- Created an attachment (id=14913) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14913&action=view) source 3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 2008-01-10 19:27 [Bug c/34732] New: Optimization flag trigger unexpected crash ijeukens at yahoo dot com dot br ` (4 preceding siblings ...) 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 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-10 20:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from ijeukens at yahoo dot com dot br 2008-01-10 19:28 ------- Created an attachment (id=14914) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14914&action=view) source 4 .. and last one -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/34732] Optimization flag trigger unexpected crash 2008-01-10 19:27 [Bug c/34732] New: Optimization flag trigger unexpected crash ijeukens at yahoo dot com dot br ` (5 preceding siblings ...) 2008-01-10 20:22 ` ijeukens at yahoo dot com dot br @ 2008-01-11 12:56 ` ijeukens at yahoo dot com dot br 6 siblings, 0 replies; 8+ messages in thread From: ijeukens at yahoo dot com dot br @ 2008-01-11 12:56 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from ijeukens at yahoo dot com dot br 2008-01-11 11:43 ------- Not a bug (wrong variable type (int instead of size_t) triggered strange behavior. -- ijeukens at yahoo dot com dot br changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID 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 middle-end/34732] " pinskia at gcc dot gnu dot org 2008-01-10 19:28 ` [Bug c/34732] " ijeukens at yahoo dot com dot br 2008-01-10 20:05 ` [Bug middle-end/34732] " 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).