http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51761
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 11:21:38 UTC --- Reduced testcase (-O -m32): struct S { unsigned int len; }; struct S foo (struct S); struct S bar (struct S x) { return ({ struct S a = x; foo (a); }); } The C FE isn't inserting CLEANUP_POINT_EXPRs everywhere, so I wonder if the r181332 change to add the clobber must not be limited to C++ or if e.g. gimplify_cleanup_point_expr shouldn't set some (new) flag in *gimplify_ctxp for the duration of the embedded gimplify_stmt call (and restore it from previous value afterwards) and use this flag to decide whether to add the cleanup or not.