public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40080] New: error: missing callgraph edge for call stmt
@ 2009-05-09 9:11 marcus at jet dot franken dot de
2009-05-09 9:11 ` [Bug middle-end/40080] " marcus at jet dot franken dot de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: marcus at jet dot franken dot de @ 2009-05-09 9:11 UTC (permalink / raw)
To: gcc-bugs
/home/marcus/projects/gcc.trunk/BIN/bin/gcc -c -O3 -o dplay.o dplay.i
dplay.i:44: error: missing callgraph edge for call stmt:
# .MEM_13 = VDEF <.MEM_10>
D.2719_6 = xcbDeletePlayerFromAllGroups ();
xDP_IF_EnumGroupsInGroup.clone.0/10(-1) [0x7fa23ece1800]: (inline copy in
xDP_IF_DestroyPlayer/3) (clone of xDP_IF_EnumGroupsInGroup.clone.0/8)
availability:local 38 insns body local finalized inlinable
called by: xcbDeletePlayerFromAllGroups/9 (9.18 per call) (inlined)
calls: ff/4 (9.18 per call)
dplay.i:44: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: error: missing callgraph edge for call stmt
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
@ 2009-05-09 9:11 ` marcus at jet dot franken dot de
2009-05-09 9:21 ` [Bug middle-end/40080] [4.5 Regression] " rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marcus at jet dot franken dot de @ 2009-05-09 9:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from marcus at jet dot franken dot de 2009-05-09 09:11 -------
Created an attachment (id=17834)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17834&action=view)
dplay.i
reduced testcase
gcc -c -O3 dplay.i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
2009-05-09 9:11 ` [Bug middle-end/40080] " marcus at jet dot franken dot de
@ 2009-05-09 9:21 ` rguenth at gcc dot gnu dot org
2009-05-09 18:53 ` hubicka at ucw dot cz
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-09 9:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-09 09:21 -------
Honza, this is caused by your cgraph changes. Likely an easier to reproduced
case than PR40079.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|richard dot guenther at |rguenth at gcc dot gnu dot
|gmail dot com |org, hubicka at gcc dot gnu
| |dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-checking, ice-on-valid-
| |code
Last reconfirmed|0000-00-00 00:00:00 |2009-05-09 09:21:42
date| |
Summary|error: missing callgraph |[4.5 Regression] error:
|edge for call stmt |missing callgraph edge for
| |call stmt
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
2009-05-09 9:11 ` [Bug middle-end/40080] " marcus at jet dot franken dot de
2009-05-09 9:21 ` [Bug middle-end/40080] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-05-09 18:53 ` hubicka at ucw dot cz
2009-05-09 20:11 ` hubicka at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at ucw dot cz @ 2009-05-09 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hubicka at ucw dot cz 2009-05-09 18:52 -------
Subject: Re: [4.5 Regression] error: missing callgraph edge for call stmt
Hi,
I am testing the following:
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 147319)
+++ cgraphunit.c (working copy)
@@ -1762,7 +1762,12 @@ cgraph_materialize_all_clones (void)
for (e = node->callees; e; e = e->next_callee)
{
tree decl = gimple_call_fndecl (e->call_stmt);
- if (decl != e->callee->decl)
+ /* When function gets inlined, indirect inlining might've invented
+ new edge for orginally indirect stmt. Since we are not
+ preserving clones in the original form, we must not update here
+ since other inline clones don't need to contain call to the same
+ call. Inliner will do the substitution for us later. */
+ if (decl && decl != e->callee->decl)
{
gimple new_stmt;
gimple_stmt_iterator gsi;
@@ -1808,6 +1813,9 @@ cgraph_materialize_all_clones (void)
verify_cgraph_node (node);
#endif
}
+#ifdef ENABLE_CHECKING
+ verify_cgraph ();
+#endif
cgraph_remove_unreachable_nodes (false, cgraph_dump_file);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
` (2 preceding siblings ...)
2009-05-09 18:53 ` hubicka at ucw dot cz
@ 2009-05-09 20:11 ` hubicka at gcc dot gnu dot org
2009-05-11 16:37 ` hjl at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2009-05-09 20:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hubicka at gcc dot gnu dot org 2009-05-09 20:10 -------
Subject: Bug 40080
Author: hubicka
Date: Sat May 9 20:10:37 2009
New Revision: 147320
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147320
Log:
PR middle-end/40080
* cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
indirect calls; verify cgraph afterwards.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
` (3 preceding siblings ...)
2009-05-09 20:11 ` hubicka at gcc dot gnu dot org
@ 2009-05-11 16:37 ` hjl at gcc dot gnu dot org
2009-05-11 16:40 ` hjl dot tools at gmail dot com
2009-05-11 16:49 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-11 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl at gcc dot gnu dot org 2009-05-11 16:37 -------
Subject: Bug 40080
Author: hjl
Date: Mon May 11 16:37:07 2009
New Revision: 147389
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147389
Log:
2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/40080
* gcc.c-torture/compile/pr40080.c: New.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr40080.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
` (4 preceding siblings ...)
2009-05-11 16:37 ` hjl at gcc dot gnu dot org
@ 2009-05-11 16:40 ` hjl dot tools at gmail dot com
2009-05-11 16:49 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-11 16:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2009-05-11 16:40 -------
Fixed.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40080] [4.5 Regression] error: missing callgraph edge for call stmt
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
` (5 preceding siblings ...)
2009-05-11 16:40 ` hjl dot tools at gmail dot com
@ 2009-05-11 16:49 ` hjl at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-11 16:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl at gcc dot gnu dot org 2009-05-11 16:49 -------
Subject: Bug 40080
Author: hjl
Date: Mon May 11 16:49:17 2009
New Revision: 147390
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147390
Log:
2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/40080
* gcc.c-torture/compile/pr40080.c: New.
2009-05-11 Paolo Bonzini <bonzini@gnu.org>
* gcc.c-torture/compile/pr40026.c: New testcase.
2009-05-09 Jan Hubicka <jh@suse.cz>
PR middle-end/40043
* g++.dg/eh/nested-try.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/eh/nested-try.C
- copied unchanged from r147389,
trunk/gcc/testsuite/g++.dg/eh/nested-try.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40026.c
- copied unchanged from r147389,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40026.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40080.c
- copied unchanged from r147389,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40080.c
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40080
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-05-11 16:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-09 9:11 [Bug middle-end/40080] New: error: missing callgraph edge for call stmt marcus at jet dot franken dot de
2009-05-09 9:11 ` [Bug middle-end/40080] " marcus at jet dot franken dot de
2009-05-09 9:21 ` [Bug middle-end/40080] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-05-09 18:53 ` hubicka at ucw dot cz
2009-05-09 20:11 ` hubicka at gcc dot gnu dot org
2009-05-11 16:37 ` hjl at gcc dot gnu dot org
2009-05-11 16:40 ` hjl dot tools at gmail dot com
2009-05-11 16:49 ` hjl 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).