public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
@ 2010-10-08 22:58 zsojka at seznam dot cz
2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-08 22:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949
Summary: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538)
with -flto/-fwhopr on invalid code
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22004
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22004
reduced testcase (from g++.dg/template/cond2.C)
Command line:
$ gcc -O2 -flto pr45949.C
or
$ gcc -O2 -fwhopr pr45949.C
Related valgrind output:
pr45949.C: In instantiation of 'int test(c<(0 ? : X)>*) [with int X = 2]':
pr45949.C:2:24: instantiated from here
pr45949.C:2:24: error: omitted middle operand to '?:' operand cannot be mangled
==22144== Invalid read of size 8
==22144== at 0xA1125D: gimple_default_def (tree-dfa.c:538)
==22144== by 0xC132FB: ipa_analyze_node (ipa-prop.c:1282)
==22144== by 0xC05E2A: ipcp_generate_summary (ipa-cp.c:1538)
==22144== by 0x8FC6B5: execute_ipa_summary_passes (passes.c:1423)
==22144== by 0xC048C7: cgraph_optimize (cgraphunit.c:1718)
==22144== by 0xC04AA9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==22144== by 0x58736C: cp_write_global_declarations (decl2.c:3928)
==22144== by 0x9E74E3: toplev_main (toplev.c:946)
==22144== by 0x657BBBC: (below main) (in /lib64/libc-2.11.2.so)
==22144== Address 0x40 is not stack'd, malloc'd or (recently) free'd
==22144==
pr45949.C:7:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
@ 2010-10-09 12:24 ` rguenth at gcc dot gnu.org
2010-11-29 16:32 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-09 12:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.09 12:24:32
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-09 12:24:32 UTC ---
The problem is we're issueing an error from decl_assembler_name called
via free_lang_data which is an IPA pass, so the guard
1768 if (!seen_error ())
1769 ipa_passes ();
in cgraph_optimize () doesn't work reliably.
Now, without LTO we're assigning the assembler name and erroring during
expansion.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
@ 2010-11-29 16:32 ` rguenth at gcc dot gnu.org
2010-11-30 10:05 ` rguenth at gcc dot gnu.org
2010-11-30 12:22 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-29 16:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-29 16:27:29 UTC ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
2010-11-29 16:32 ` rguenth at gcc dot gnu.org
@ 2010-11-30 10:05 ` rguenth at gcc dot gnu.org
2010-11-30 12:22 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-30 10:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-30 10:00:13 UTC ---
Author: rguenth
Date: Tue Nov 30 10:00:06 2010
New Revision: 167291
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167291
Log:
2010-11-30 Richard Guenther <rguenther@suse.de>
PR lto/45949
* cgraphunit.c (ipa_passes): Stop after errors from
small IPA passes.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-11-30 10:05 ` rguenth at gcc dot gnu.org
@ 2010-11-30 12:22 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-30 12:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-30 12:07:57 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-30 12:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 22:58 [Bug lto/45949] New: ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code zsojka at seznam dot cz
2010-10-09 12:24 ` [Bug lto/45949] " rguenth at gcc dot gnu.org
2010-11-29 16:32 ` rguenth at gcc dot gnu.org
2010-11-30 10:05 ` rguenth at gcc dot gnu.org
2010-11-30 12:22 ` rguenth at gcc dot gnu.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).