This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20912] C++ FE emitting assignments to read-only global symbols
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Apr 2005 17:56:34 -0000
- Subject: [Bug c++/20912] C++ FE emitting assignments to read-only global symbols
- References: <20050409015142.20912.dnovillo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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