------- Comment #4 from jakub at gcc dot gnu dot org 2009-06-09 21:21 ------- IMHO either we need to handle gimple_call_return_slot_opt_p cals in the middle-end as taking address of the call's lhs, or the frontend needs to expand it not as D.2275 = baz (); [return slot optimization] but as baz (&D.2275); Doing the latter can be problematic on targets which have special calling conventions for the returns by invisible reference.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389