http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51895
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-19 13:55:31 UTC --- Peter's patch does as well. The thing is that we still do wrong expand_expr on that kind of MEM_EXPR, and I don't see anything that would prevent such MEM_EXPRs in all kinds of other contexts, not just in the loading of the parameters. And each of the would need hacks to cope with a BLKmode expression surprisingly being expanded to something that doesn't have BLKmode.