This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17217] New: not removing removal of nested structs
- 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: 27 Aug 2004 18:55:56 -0000
- Subject: [Bug tree-optimization/17217] New: not removing removal of nested structs
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc -O3 and you will see that the load and store to the struct is still there for j.
int h(int *a);
int f(int i, int j)
{
int t = i;
int t1 = j;
int g()
{
return h(&t) + t1;
}
return g() + t1;
}
I found this when looking at facerec which uses nested functions.
--
Summary: not removing removal of nested structs
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17217