public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43080] New: ICE with anonymous union and -flto
@ 2010-02-15 14:25 reichelt at gcc dot gnu dot org
2010-02-15 15:03 ` [Bug c++/43080] " rguenth at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2010-02-15 14:25 UTC (permalink / raw)
To: gcc-bugs
The following valid code snippet triggers an ICE on trunk when compiled with
"-flto -g":
=======================================
inline int foo()
{
static union { int i; };
return i;
}
void bar()
{
foo();
}
=======================================
bug.cc: In function 'foo()':
bug.cc:5:1: internal compiler error: in gimple_decl_printable_name, at
gimple.c:4610
Please submit a full bug report, [etc.]
--
Summary: ICE with anonymous union and -flto
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored, lto
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
@ 2010-02-15 15:03 ` rguenth at gcc dot gnu dot org
2010-04-23 16:23 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-15 15:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-02-15 15:03 -------
We remove anonymous names to not break cross-TU merging. Looks like we need
to resurrect them or mark them as anonymous for merging instead of throwing
them away.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
2010-02-15 15:03 ` [Bug c++/43080] " rguenth at gcc dot gnu dot org
@ 2010-04-23 16:23 ` rguenth at gcc dot gnu dot org
2010-04-26 9:20 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-23 16:22 -------
I have a fix.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-04-23 16:22:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
2010-02-15 15:03 ` [Bug c++/43080] " rguenth at gcc dot gnu dot org
2010-04-23 16:23 ` rguenth at gcc dot gnu dot org
@ 2010-04-26 9:20 ` rguenth at gcc dot gnu dot org
2010-04-26 9:25 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-26 9:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-26 09:19 -------
Subject: Bug 43080
Author: rguenth
Date: Mon Apr 26 09:19:24 2010
New Revision: 158723
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158723
Log:
2010-04-26 Richard Guenther <rguenther@suse.de>
PR lto/43080
* gimple.c (gimple_decl_printable_name): Deal gracefully
with a NULL DECL_NAME.
* g++.dg/lto/20100423-3_0.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/lto/20100423-3_0.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-04-26 9:20 ` rguenth at gcc dot gnu dot org
@ 2010-04-26 9:25 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-26 9:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-26 09:25 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail| |4.5.0
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-04-26 9:25 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 13:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-05-19 13:16 -------
Subject: Bug 43080
Author: rguenth
Date: Wed May 19 13:14:37 2010
New Revision: 159564
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159564
Log:
2010-05-19 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2010-04-26 Richard Guenther <rguenther@suse.de>
PR lto/43455
* tree-inline.c (tree_can_inline_p): Also check compatibility
of return types.
* gcc.dg/lto/20100423-1_0.c: New testcase.
* gcc.dg/lto/20100423-1_1.c: Likewise.
2010-04-23 Richard Guenther <rguenther@suse.de>
PR lto/42653
* tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
of FUNCTION_DECLs.
* g++.dg/lto/20100423-1_0.C: New testcase.
2010-04-26 Richard Guenther <rguenther@suse.de>
PR lto/42425
* tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
if emitting debug information and it is either a function
or a namespace decl.
* g++.dg/lto/20100423-2_0.C: New testcase.
2010-04-26 Richard Guenther <rguenther@suse.de>
PR lto/43080
* gimple.c (gimple_decl_printable_name): Deal gracefully
with a NULL DECL_NAME.
* g++.dg/lto/20100423-3_0.C: New testcase.
2010-04-30 Richard Guenther <rguenther@suse.de>
PR lto/43946
* passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
first after all lowering passes.
* gcc.dg/lto/20100430-1_0.c: New testcase.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-1_0.C
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-2_0.C
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-3_0.C
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100423-1_0.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100423-1_1.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100430-1_0.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/gimple.c
branches/gcc-4_5-branch/gcc/passes.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-inline.c
branches/gcc-4_5-branch/gcc/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/43080] ICE with anonymous union and -flto
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 13:18 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.0 |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-05-19 13:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-15 14:25 [Bug c++/43080] New: ICE with anonymous union and -flto reichelt at gcc dot gnu dot org
2010-02-15 15:03 ` [Bug c++/43080] " rguenth at gcc dot gnu dot org
2010-04-23 16:23 ` rguenth at gcc dot gnu dot org
2010-04-26 9:20 ` rguenth at gcc dot gnu dot org
2010-04-26 9:25 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth 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).