This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/21374] [4.4/4.5/4.6/4.7 regression] ICE with nested function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21374

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE
      Known to fail|                            |

--- Comment #17 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 15:53:51 UTC ---
On the trunk, when optimizing, we now inline the nested function and
optimize everything away.  Adjusted testcase:

int
main (int argc, char **argv)
{
  int size = 10;
  typedef struct
    {
      char val[size];
    }
  block;
  block b;
  block __attribute__((noinline))
  retframe_block ()
    {
      return *(block *) &b;
    }
  b=retframe_block ();
  return 0;
}

which makes this a dup of PR8081.

*** This bug has been marked as a duplicate of bug 8081 ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]