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

             Bug #: 50824
           Summary: memset or memcpy on structure prevents SRA
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: andi-...@firstfloor.org


Clearing a structure using memset or copying it using memcpy currently
disables SRA for the structure because it counts as escaping. 

Since this is common it would be better
if it was handled. Clearing it using an initializer or copying it with
= already works, so those could be handled the same way.

Reply via email to