https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
--- Comment #7 from Jan Hubicka ---
> Can the bug be marked as resolved?
I think to fully resolve we still want to teach DCE to replace
pure/const destructor by clobber when removing it. This should
not be too hard to do because destructors are
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
Martin Liška changed:
What|Removed |Added
CC||marxin at gcc dot gnu.org
--- Comment #6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
--- Comment #5 from Jan Hubicka ---
> I think we can safely ignore clobbers when scanning functions for
> pure/constness.
Yes (it is what the patch does), but doing so may cause worse code in the
function calling these destructors. DCE will rem
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
Richard Biener changed:
What|Removed |Added
Keywords||missed-optimization
Target Milestone|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
Jan Hubicka changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
--- Comment #2 from Jan Hubicka ---
Author: hubicka
Date: Sun Mar 22 21:10:24 2015
New Revision: 221574
URL: https://gcc.gnu.org/viewcvs?rev=221574&root=gcc&view=rev
Log:
PR ipa/65502
* ipa-comdats.c (enqueue_references): Walk through t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502
--- Comment #1 from Jan Hubicka ---
The following patch makes ipa-pure-const to detect these functions as
pure/const.
There are two issues
1) I think we should preserve clobber semantic when removing a call to
pure/const
destructor. I wonde