This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15838] New: "Inline" value of static struct
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2004 01:22:44 -0000
- Subject: [Bug tree-optimization/15838] New: "Inline" value of static struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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