[Bug middle-end/68378] Return value optimization does not fire iff in C mode
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 4 23:18:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68378
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Dunno what to do here though, undoing all DECL_ALIGN changes performed
> during compute_inline_parameters (but then for vars that are not going to be
> NRV optimized this would be an pessimization), or say undo DECL_ALIGN
> changes for vars that could be NRV optimized (appear in a return stmt,
> perhaps something more specific)?
Couldn't the NRV pass be moved up in the pipeline? The Ada front-end (gigi)
also has its own NRV pass because the GIMPLE pass is quite ineffective.
More information about the Gcc-bugs
mailing list