https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #7 from prathamesh3492 at gcc dot gnu.org ---
(In reply to Jan Hubicka from comment #5)
> The problem seems to be that cgraph_node::get_untransformed_body checks
> presence of body by DECL_RESULT which is NULL for thunks. Rest of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #8 from Jan Hubicka ---
Well, -flto-partition=none does bot IPA optimization and codegen in one run. In
this case the body was once read by ipa-cp to duplicate the thunk and second
time by expand_thunk. With other methods the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #9 from Jan Hubicka ---
Author: hubicka
Date: Tue Jan 19 11:57:41 2016
New Revision: 232552
URL: https://gcc.gnu.org/viewcvs?rev=232552=gcc=rev
Log:
PR lto/69133
* cgraphunit.c (cgraph_node::expand_thunk): When
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Jan Hubicka changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Jan Hubicka changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #5 from Jan Hubicka ---
The problem seems to be that cgraph_node::get_untransformed_body checks
presence of body by DECL_RESULT which is NULL for thunks. Rest of places seems
to check for DECL_ARGUMENTS.
I am testing:
Index:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #6 from Jan Hubicka ---
The following has even chance to work :)
Index: cgraph.c
===
--- cgraph.c(revision 232466)
+++ cgraph.c(working copy)
@@ -3305,10
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Richard Biener changed:
What|Removed |Added
Priority|P3 |P1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Markus Trippelsdorf changed:
What|Removed |Added
Keywords|ice-on-valid-code |ice-on-invalid-code
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Andrew Pinski changed:
What|Removed |Added
Keywords|ice-on-invalid-code |ice-on-valid-code
Target
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
--- Comment #3 from Andrew Pinski ---
(In reply to Markus Trippelsdorf from comment #2)
The code included here is undefined due to ODR violations.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69133
Markus Trippelsdorf changed:
What|Removed |Added
Target|x86_64-unknown-linux-gnu|
Status|UNCONFIRMED
12 matches
Mail list logo