rs6000.c (first_reg_to_save): Don't save fixed or call-used registers (call-saved registers must still be...

* config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
call-used registers (call-saved registers must still be contiguous
and end with r31, of course).

Co-Authored-By: Geoff Keating <geoffk@cygnus.com>
Co-Authored-By: Melissa O'Neill <oneill@cs.sfu.ca>

From-SVN: r29181
This commit is contained in:
Ian Piumarta 1999-09-08 06:59:10 +02:00 committed by Geoffrey Keating
parent c530479e15
commit 7d617b67c0
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
Melissa O'Neill <oneill@cs.sfu.ca>
Geoffrey Keating <geoffk@cygnus.com>
* config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
call-used registers (call-saved registers must still be contiguous
and end with r31, of course).
Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
* c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.

View File

@ -3414,7 +3414,7 @@ first_reg_to_save ()
/* Find lowest numbered live register. */
for (first_reg = 13; first_reg <= 31; first_reg++)
if (regs_ever_live[first_reg])
if (regs_ever_live[first_reg] && ! call_used_regs[first_reg])
break;
if (profile_flag)