------- 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

Reply via email to