This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: interrupt handler functions


Richard Sandiford wrote:
John Parkes <jp012c6013@blueyonder.co.uk> writes:

My port has RTL pro/epilogue. I'm trying to implement the `interrupt'
attribute. How do I tell life analysis that call clobbered registers
are live at function exit, to prevent it trying to delete restores of
those registers in the epilogue ?


One way would be to add them to EPILOGUE_USES.
another way is to set MEM_VOLATILE on the save and restore.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]