[Bug tree-optimization/50824] New: memset or memcpy on structure prevents SRA
andi-gcc at firstfloor dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 21 15:26:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@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.
More information about the Gcc-bugs
mailing list