[Bug tree-optimization/15838] New: "Inline" value of static struct
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 6 01:22:00 GMT 2004
struct a{int i;};
static const struct a b = {1};
int g(){return b.i;}
This should be optimized to just
int g(){return 1;}
--
Summary: "Inline" value of static struct
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 3713
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15838
More information about the Gcc-bugs
mailing list