From: Alexandre Oliva Date: Wed, 13 Jun 2001 02:09:18 +0000 (+0000) Subject: extend.texi (Function Attributes): Document SH's sp_switch and trap_exit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b93e38937eaeb309d57c5e39191bdcb1c4484060;p=gcc.git extend.texi (Function Attributes): Document SH's sp_switch and trap_exit. * doc/extend.texi (Function Attributes): Document SH's sp_switch and trap_exit. From-SVN: r43293 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 432761169d2..91162d51ee9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-06-12 Alexandre Oliva + + * doc/extend.texi (Function Attributes): Document SH's sp_switch + and trap_exit. + 2001-06-13 Joseph S. Myers * doc/invoke.texi: Use more logical markup. Use TeX quotes, diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 88530600d24..3b08a50d1a2 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1935,13 +1935,6 @@ and 64 entries on the H8/300H) and shares space with the interrupt vector. You must use GAS and GLD from GNU binutils version 2.7 or later for this option to work correctly. -@item interrupt_handler -@cindex interrupt handler functions on the H8/300 processors -Use this option on the H8/300 and H8/300H to indicate that the specified -function is an interrupt handler. The compiler will generate function -entry and exit sequences suitable for use in an interrupt handler when this -attribute is present. - @item interrupt @cindex interrupt handler functions Use this option on the ARM, AVR and M32R/D ports to indicate that the @@ -1949,8 +1942,8 @@ specified function is an interrupt handler. The compiler will generate function entry and exit sequences suitable for use in an interrupt handler when this attribute is present. -Note, interrupt handlers for the H8/300 and H8/300H processors can be -specified via the @code{interrupt_handler} attribute. +Note, interrupt handlers for the H8/300, H8/300H and SH processors can +be specified via the @code{interrupt_handler} attribute. Note, on the AVR interrupts will be enabled inside the function. @@ -1963,6 +1956,29 @@ void f () __attribute__ ((interrupt ("IRQ"))); Permissible values for this parameter are: IRQ, FIQ, SWI, ABORT and UNDEF. +@item interrupt_handler +@cindex interrupt handler functions on the H8/300 and SH processors +Use this option on the H8/300, H8/300H and SH to indicate that the +specified function is an interrupt handler. The compiler will generate +function entry and exit sequences suitable for use in an interrupt +handler when this attribute is present. + +@item sp_switch +Use this option on the SH to indicate an @code{interrupt_handler} +function should switch to an alternate stack. It expects a string +argument that names a global variable holding the address of the +alternate stack. + +@smallexample +void *alt_stack; +void f () __attribute__ ((interrupt_handler, sp_switch ("alt_stack"))); +@end smallexample + +@item trap_exit +Use this option on the SH for an @code{interrupt_handle} to return using +@code{trapa} instead of @code{rte}. This attribute expects an integer +argument specifying the trap number to be used. + @item eightbit_data @cindex eight bit data on the H8/300 and H8/300H Use this option on the H8/300 and H8/300H to indicate that the specified