diff options
author | Alan Modra <amodra@gmail.com> | 2010-11-01 13:54:20 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2010-11-01 13:54:20 +1030 |
commit | 942c9c076a9770797b164f0dd955bd98be44ff41 (patch) | |
tree | 2789cb8ef742aef3eb7d081e5cd801573be82187 /gcc/tree.c | |
parent | 0930cc0ece835ab77a30d8b5894a8910f55d4054 (diff) | |
download | gcc-942c9c076a9770797b164f0dd955bd98be44ff41.zip gcc-942c9c076a9770797b164f0dd955bd98be44ff41.tar.gz gcc-942c9c076a9770797b164f0dd955bd98be44ff41.tar.bz2 |
re PR target/46030 (registers trashed with -Os)
PR target/46030
* config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
and savres_strategy.
(stack_info): New file scope var.
(rs6000_init_machine_status): Init stack_info.
(SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
(SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
(rs6000_savres_strategy): Rewrite.
(rs6000_stack_info): Use "stack_info" in place of local "info".
Return cached stack info when reload_completed unless ENABLE_CHECKING
in which case confirm newly calculated stack info matches old info.
Delay calculation of lr_save_p, set it for out of line gp save/restore
as well as fp. Call rs6000_savres_strategy from here..
(rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
(rs6000_output_function_prologue): Use info->savres_strategy to
determine whether fp save/restore externs need to be emitted.
From-SVN: r166125
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions