This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47896] wrong code with -O -fno-early-inlining -fipa-pta -fno-tree-dominator-opts -fno-tree-forwprop
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Mar 2011 12:50:37 +0000
- Subject: [Bug tree-optimization/47896] wrong code with -O -fno-early-inlining -fipa-pta -fno-tree-dominator-opts -fno-tree-forwprop
- Auto-submitted: auto-generated
- References: <bug-47896-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47896
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |alias
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-01 12:50:35 UTC ---
This is a failure to handle return-slot-optimization in IPA-PTA properly. For
D.2098 = foo (); [return slot optimization]
we have to make foos return function part point to D.2098. That requires
some re-org, making the function result varinfo always a pointer,
making sure to use *result for result-decl uses (if not DECL_BY_REFERENCE).
I have a patch, but as this bug only affects IPA-PTA I'm defering it to 4.7
as the patch also touches non-IPA parts.