public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17217] New: not removing removal of nested structs
@ 2004-08-27 18:56 pinskia at gcc dot gnu dot org
  2004-08-27 19:42 ` [Bug tree-optimization/17217] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27 18:56 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-17217-6528@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-17217-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-09-03  6:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-27 18:56 [Bug tree-optimization/17217] New: not removing removal of nested structs pinskia at gcc dot gnu dot org
2004-08-27 19:42 ` [Bug tree-optimization/17217] " pinskia at gcc dot gnu dot org
2004-08-27 22:13 ` pinskia at gcc dot gnu dot org
2004-08-31  5:26 ` pinskia at gcc dot gnu dot org
2005-04-16 17:37 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17217-6528@http.gcc.gnu.org/bugzilla/>
2008-09-16  1:05 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17217-4@http.gcc.gnu.org/bugzilla/>
2021-09-03  6:13 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).