[Bug c++/20912] C++ FE emitting assignments to read-only global symbols
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 18 17:56:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:56 -------
Simple code which shows we now have a missed optimization:
static const double a = 1.0;
static const double b = a+1.0;
double c()
{
return b;
}
See PR 21089.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |21089
Bug 20912 depends on bug 21089, which changed state.
Bug 21089 Summary: [4.0/4.1 Regression] C++ front-end does not "inline" the static const double
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21089
What |Old Value |New Value
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
Status|UNCONFIRMED |NEWBug 20912 depends on bug 21089, which changed state.
Bug 21089 Summary: [4.0/4.1 Regression] C++ front-end does not "inline" the static const double
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21089
What |Old Value |New Value
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
Status|UNCONFIRMED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20912
More information about the Gcc-bugs
mailing list