Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Nov 1999 22:18:21 +0000 (23:18 +0100)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 30 Nov 1999 22:18:21 +0000 (14:18 -0800)
commite48addeebcc08efa9cd2a13fd2e70e2c92db26d8
treea0aa3f53fbb63793261d833b1f8613a481049e03
parentf34e52f774c16f4042cc44ddb471dd141a5dc583
Jakub Jelinek  <jakub@redhat.com>

        * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
        Allow the user to override call-used/fixed state of %g2-5
        registers from the command line (with the exception of %g4 for
        embedded model).
        (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
        there is a higher chance of having a leaf function.
        (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
        for ARCH64 which has %ccr register.
        * config/sparc/sparc.md (return_losum_si, return_losum_di): New
        patterns.
        * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
        insn accept into delay slot any insn which does not use %[ol]
        registers.  Accept some LO_SUM and shift left by 1 for the normal
        restore case.
        (output_function_epilogue): Likewise.
        (epilogue_renumber): Added argument which inhibits any renumbering
        and just tests if the rtx does not use any %[ol] registers.
        (output_return): Reflect above change.

From-SVN: r30727
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h
gcc/config/sparc/sparc.md