[Patch, ARM] cleanup prologue_use pattern

Greta Yorsh greta.yorsh@arm.com
Wed Oct 10 15:26:00 GMT 2012


The pattern prologue_use is emitted for both prologue and epilogue.
In particular, the assembly comment
"@sp needed for prologue"
is printed out for both prologue and epilogue.

This patch adds a separate pattern for epilogue_use and replaces
prologue_use with epilogue_use where appropriate.

No regression on qemu for arm-none-eabi.

Ok for trunk?

Thanks,
Greta

2012-09-17  Greta Yorsh  <Greta.Yorsh@arm.com>

        * config/arm/arm.md (UNSPEC_EPILOGUE_USE): New unspec value.
        (sibcall_epilogue): Use UNSPEC_EPILOGUE_USE instead of
        UNSPEC_PROLOGUE_USE.
        (epilogue_use): New define_insn.
        (epilogue): Use gen_epilogue_use instead of gen_prologue_use.
        * config/arm/arm.c (arm_expand_epilogue): Likewise.
        (thumb1_expand_epilogue) Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rename-prolog-use.v2.patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121010/d13c6e9b/attachment.txt>


More information about the Gcc-patches mailing list