Re: [PATCH] RISC-V: Add interrupt attribute support.

2018-05-29 Thread Jim Wilson
On Tue, May 29, 2018 at 7:32 AM, Nathan Sidwell wrote: > On 05/25/2018 06:30 PM, Jim Wilson wrote: > >> -/* Return true if func is a naked function. */ >> +/* Return true if funcion TYPE is an interrupt function. */ > > .^^^ >> >> +static bool >> +riscv_interrupt_type_p (

Re: [PATCH] RISC-V: Add interrupt attribute support.

2018-05-29 Thread Nathan Sidwell
On 05/25/2018 06:30 PM, Jim Wilson wrote: -/* Return true if func is a naked function. */ +/* Return true if funcion TYPE is an interrupt function. */ .^^^ +static bool +riscv_interrupt_type_p (tree type) funcion? -- Nathan Sidwell

[PATCH] RISC-V: Add interrupt attribute support.

2018-05-25 Thread Jim Wilson
This adds basic interrupt attribute support to the RISC-V port. This will save every register before it is used, will save every temporary and argument register and the return address register before a call, and emits a mret instruction at the end. I've included some docs and some testcases to ve