On 05/22/2013 12:43 AM, Jakub Jelinek wrote:
> Changing frame grows upward into frame grows downward shouldn't be that
> hard, see e.g. rs6000 port, where
> #define FRAME_GROWS_DOWNWARD (flag_stack_protect != 0 || flag_asan != 0)
> and grep the port where it uses FRAME_GROWS_DOWNWARD.
> Basically you need to tweak initial elimination offset computation for it,
> and that might be it, or perhaps one or two extra spots.

FWIW, I would actually recommend against conditionalizing FRAME_GROWS_DOWNWARD
for a new port.  Just make it _always_ grow down and save yourself the
additional code bloat in the backend.


r~

Reply via email to