http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56022
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2013-01-21 10:01:40 UTC --- The problem is that aggregate_value_p can rely on that invoke_set_current_function_hook has already been called which my patch foolishly moved below it. I'm preparing a patch.