[Bug c/11761] [tree-ssa] arrays inside classes not optimised away

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Fri Aug 1 15:12:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11761


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |pessimizes-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-01 15:12:27
               date|                            |
   Target Milestone|3.4                         |tree-ssa


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-01 15:12 -------
I can confirm this on tree-ssa branch (20030801).
output from -fdump-tree-all:
int main() ()
{
  {
    struct p p1;

    {
      struct p * const this;

      this = (struct p * const)&p1;
      this->a[3] = 1234
    };
    t ()
  };
  return 0;
}

Looks like the store in this->a[3] is not being optimized away so the variable this is not being 
optimized away which causes p1 not be optimize away.



More information about the Gcc-bugs mailing list