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 ***