This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21374] [4.4/4.5/4.6/4.7 regression] ICE with nested function
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jan 2012 15:53:51 +0000
- Subject: [Bug middle-end/21374] [4.4/4.5/4.6/4.7 regression] ICE with nested function
- Auto-submitted: auto-generated
- References: <bug-21374-4@http.gcc.gnu.org/bugzilla/>
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 ***