public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38140] New: ice for C code with -O2
@ 2008-11-15 21:37 dcb314 at hotmail dot com
2008-11-15 21:38 ` [Bug c/38140] " dcb314 at hotmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2008-11-15 21:37 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile Suse Linux package opensc-0.11.6-4.5
with the GNU gcc version 4.4.0 snapshot 20081114
It said
asn1.c: In function 'asn1_decode':
asn1.c:1148: internal compiler error: in gimple_call_return_type, at
gimple.h:1993
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source code attached. Flag -O2 required.
--
Summary: ice for C code with -O2
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: suse-linux-x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/38140] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
@ 2008-11-15 21:38 ` dcb314 at hotmail dot com
2008-11-15 21:56 ` [Bug c/38140] [4.4 Regression] " rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2008-11-15 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dcb314 at hotmail dot com 2008-11-15 21:37 -------
Created an attachment (id=16689)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16689&action=view)
C source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
2008-11-15 21:38 ` [Bug c/38140] " dcb314 at hotmail dot com
@ 2008-11-15 21:56 ` rguenth at gcc dot gnu dot org
2008-11-15 23:18 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-11-15 21:56 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to fail| |4.4.0
Known to work| |4.3.2
Summary|ice for C code with -O2 |[4.4 Regression] ice for C
| |code with -O2
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
2008-11-15 21:38 ` [Bug c/38140] " dcb314 at hotmail dot com
2008-11-15 21:56 ` [Bug c/38140] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-11-15 23:18 ` jakub at gcc dot gnu dot org
2008-11-16 12:34 ` [Bug middle-end/38140] " jakub at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-15 23:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-11-15 23:16 -------
The source is buggy,
*(void **)(&callback_func) = parm;
violates strict aliasing (with absolutely no reason, callback_func = parm;
would work perfectly).
That said, gcc shouldn't ICE on such code anyway.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-11-15 23:16:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
` (2 preceding siblings ...)
2008-11-15 23:18 ` jakub at gcc dot gnu dot org
@ 2008-11-16 12:34 ` jakub at gcc dot gnu dot org
2008-11-17 8:49 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-16 12:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-11-16 12:33 -------
Shorter testcase:
int foo (void *x)
{
int (*fn) (int);
*(void **)&fn = x;
return fn (6);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
` (3 preceding siblings ...)
2008-11-16 12:34 ` [Bug middle-end/38140] " jakub at gcc dot gnu dot org
@ 2008-11-17 8:49 ` jakub at gcc dot gnu dot org
2008-11-17 9:37 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-17 8:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-11-17 08:48 -------
Created an attachment (id=16708)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16708&action=view)
gcc44-pr38140.patch
Patch I'm ATM bootstrapping/regtesting. tree-ssa-forwprop.c was creating
invalid GIMPLE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
` (4 preceding siblings ...)
2008-11-17 8:49 ` jakub at gcc dot gnu dot org
@ 2008-11-17 9:37 ` jakub at gcc dot gnu dot org
2008-11-17 21:01 ` jakub at gcc dot gnu dot org
2008-11-17 21:02 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-17 9:37 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
` (5 preceding siblings ...)
2008-11-17 9:37 ` jakub at gcc dot gnu dot org
@ 2008-11-17 21:01 ` jakub at gcc dot gnu dot org
2008-11-17 21:02 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-17 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-11-17 21:00 -------
Subject: Bug 38140
Author: jakub
Date: Mon Nov 17 20:58:52 2008
New Revision: 141949
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141949
Log:
PR middle-end/38140
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
propagating x = &a into *x = b, add a cast if not useless
type conversion or don't optimize if another stmt would be
needed.
* gcc.dg/pr38140.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr38140.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/38140] [4.4 Regression] ice for C code with -O2
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
` (6 preceding siblings ...)
2008-11-17 21:01 ` jakub at gcc dot gnu dot org
@ 2008-11-17 21:02 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-17 21:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2008-11-17 21:00 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38140
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-11-17 21:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-15 21:37 [Bug c/38140] New: ice for C code with -O2 dcb314 at hotmail dot com
2008-11-15 21:38 ` [Bug c/38140] " dcb314 at hotmail dot com
2008-11-15 21:56 ` [Bug c/38140] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-11-15 23:18 ` jakub at gcc dot gnu dot org
2008-11-16 12:34 ` [Bug middle-end/38140] " jakub at gcc dot gnu dot org
2008-11-17 8:49 ` jakub at gcc dot gnu dot org
2008-11-17 9:37 ` jakub at gcc dot gnu dot org
2008-11-17 21:01 ` jakub at gcc dot gnu dot org
2008-11-17 21:02 ` jakub 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).