public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:"
@ 2011-06-21 19:26 dcb314 at hotmail dot com
2011-07-01 16:26 ` [Bug c++/49495] " jamborm at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2011-06-21 19:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Summary: -O3 causes error message "edge points to wrong
declaration:"
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dcb314@hotmail.com
Created attachment 24576
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24576
C++ source code
I just tried to compile the icedtea6-1.10.2 package with the latest
trunk snapshot 20110618 on an AMD x86_64 box.
The compiler said
/home/dcb/rpmbuild/BUILD/icedtea6-1.10.2/openjdk/hotspot/src/share/vm/adlc/formssel.cpp:4089:1:
error: edge points to wrong declaration:
<function_decl 0x7ff30ed2d500 _ZN9MatchNodeC2ER8ArchDescRS_i.constprop.30
type <method_type 0x7ff30f6f4498
...
Preprocessed source code attached. Flag -O3 required.
It compiles fine with -O2.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
@ 2011-07-01 16:26 ` jamborm at gcc dot gnu.org
2011-07-01 16:37 ` jamborm at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-01 16:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.01 16:26:01
Ever Confirmed|0 |1
--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-01 16:26:01 UTC ---
Happens also with -fno-inline -fno-devirtualize.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
2011-07-01 16:26 ` [Bug c++/49495] " jamborm at gcc dot gnu.org
@ 2011-07-01 16:37 ` jamborm at gcc dot gnu.org
2011-07-01 18:12 ` jamborm at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-01 16:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-01 16:36:58 UTC ---
The problem here is that cgraph_redirect_edge_call_stmt_to_callee(0 is
never called because inline_transform() is never called. (I have
verified by putting gcc_unreachable to both, I did not believe my
gdb).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
2011-07-01 16:26 ` [Bug c++/49495] " jamborm at gcc dot gnu.org
2011-07-01 16:37 ` jamborm at gcc dot gnu.org
@ 2011-07-01 18:12 ` jamborm at gcc dot gnu.org
2011-07-03 9:46 ` [Bug middle-end/49495] " jamborm at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-01 18:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jamborm at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-01 18:11:48 UTC ---
Actually no, the problem is that the verifier is not alias-aware in this test.
I have a fix, just need to polish and test it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
` (2 preceding siblings ...)
2011-07-01 18:12 ` jamborm at gcc dot gnu.org
@ 2011-07-03 9:46 ` jamborm at gcc dot gnu.org
2011-07-07 18:08 ` jamborm at gcc dot gnu.org
2011-07-07 18:23 ` jamborm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-03 9:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-03 09:45:44 UTC ---
Patch posted to the mailing list:
http://gcc.gnu.org/ml/gcc-patches/2011-07/msg00140.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
` (3 preceding siblings ...)
2011-07-03 9:46 ` [Bug middle-end/49495] " jamborm at gcc dot gnu.org
@ 2011-07-07 18:08 ` jamborm at gcc dot gnu.org
2011-07-07 18:23 ` jamborm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-07 18:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-07 18:08:04 UTC ---
Author: jamborm
Date: Thu Jul 7 18:08:00 2011
New Revision: 175998
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175998
Log:
2011-07-07 Martin Jambor <mjambor@suse.cz>
PR middle-end/49495
* cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
(verify_cgraph_node): Some functinality moved to
verify_edge_corresponds_to_fndecl, call it.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/49495] -O3 causes error message "edge points to wrong declaration:"
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
` (4 preceding siblings ...)
2011-07-07 18:08 ` jamborm at gcc dot gnu.org
@ 2011-07-07 18:23 ` jamborm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-07-07 18:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49495
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-07-07 18:22:49 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-07-07 18:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-21 19:26 [Bug c++/49495] New: -O3 causes error message "edge points to wrong declaration:" dcb314 at hotmail dot com
2011-07-01 16:26 ` [Bug c++/49495] " jamborm at gcc dot gnu.org
2011-07-01 16:37 ` jamborm at gcc dot gnu.org
2011-07-01 18:12 ` jamborm at gcc dot gnu.org
2011-07-03 9:46 ` [Bug middle-end/49495] " jamborm at gcc dot gnu.org
2011-07-07 18:08 ` jamborm at gcc dot gnu.org
2011-07-07 18:23 ` jamborm 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).