[Bug middle-end/53844] New: GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-03 Thread ed at edrosten dot com
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

[Bug middle-end/53844] GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-03 Thread ed at edrosten dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53844 Edward Rosten changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/53844] [4.6/4.7 Regression] GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-04 Thread ed at edrosten dot com
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&.

[Bug middle-end/53844] [4.6/4.7 Regression] GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-04 Thread ed at edrosten dot com
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

[Bug middle-end/53844] [4.6/4.7 Regression] GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-04 Thread ed at edrosten dot com
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.

[Bug middle-end/53844] [4.6/4.7 Regression] GCC generates suboptimal code for unused members of classes in some cases on multiple targets.

2012-07-04 Thread ed at edrosten dot com
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

[Bug tree-optimization/53855] New: Emitting a warning for some dangling references.

2012-07-04 Thread ed at edrosten dot com
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