Commit 7153fab9 by Alan Modra Committed by Alan Modra

re PR target/53040 (nested functions may trash floating point registers)

	PR target/53040
	* config/rs6000/rs6000.c (rs6000_savres_strategy): When using
	static chain, set REST_INLINE_FPRS too.

From-SVN: r186616
parent 4e0bd6d3
2012-04-20 Alan Modra <amodra@gmail.com>
PR target/53040
* config/rs6000/rs6000.c (rs6000_savres_strategy): When using
static chain, set REST_INLINE_FPRS too.
2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
* tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
......
......@@ -17457,8 +17457,9 @@ rs6000_savres_strategy (rs6000_stack_t *info,
static chain is rarely used anyway. FPRs are saved w.r.t the stack
pointer on Darwin. */
if (using_static_chain_p)
strategy |= (DEFAULT_ABI == ABI_DARWIN ? 0 : SAVE_INLINE_FPRS)
| SAVE_INLINE_GPRS;
strategy |= ((DEFAULT_ABI == ABI_DARWIN
? 0 : SAVE_INLINE_FPRS | REST_INLINE_FPRS)
| SAVE_INLINE_GPRS);
/* If we are going to use store multiple, then don't even bother
with the out-of-line routines, since the store-multiple
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment