[Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member
dann at godzilla dot ics dot uci dot edu
gcc-bugzilla@gcc.gnu.org
Sat Jan 31 21:12:00 GMT 2004
SRA does not work for structs that contain a struct as a member.
This is a known issue, filed so that it can be tracked.
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
void link_error (void);
typedef struct teststruct
{
double d;
char f1;
struct foo {
char f2;
} m;
} teststruct;
void
copystruct4 (teststruct param)
{
teststruct local;
param.f1 = 0;
local = param;
if (local.f1 != 0)
link_error ();
}
/* There should be no reference to link_error. */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
--
Summary: [tree-ssa] SRA does not work for structs that contain a
struct as a member
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
More information about the Gcc-bugs
mailing list