http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
Bug #: 53844
Summary: GCC generates suboptimal code for unused members of
classes in some cases on multiple targets.
Classification: Unclassified
Product: gcc
Version: unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
Edward Rosten changed:
What|Removed |Added
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
--- Comment #4 from Edward Rosten 2012-07-04 09:42:52
UTC ---
It doesn't seem to do with the address, entirely. It still pushes the values
onto the stack even if the class is changed to have a const int, rather than
const int&.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
Edward Rosten changed:
What|Removed |Added
Component|tree-optimization |middle-end
--- Comment #8 from Edward Ros
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
--- Comment #9 from Edward Rosten 2012-07-04 13:40:54
UTC ---
(In reply to comment #7)
> Fixed on trunk sofar, watching for fallout.
I would like to note that your fix seems to remove the performance hit in my
numerics which revealed the bug.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844
--- Comment #11 from Edward Rosten 2012-07-04 14:13:28
UTC ---
(In reply to comment #10)
> On Wed, 4 Jul 2012, ed at edrosten dot com wrote:
> here D.2391 is already dead. So possibly you are returning references
> to temporaries
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53855
Bug #: 53855
Summary: Emitting a warning for some dangling references.
Classification: Unclassified
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: enhancement