http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55296



             Bug #: 55296

           Summary: [SH] Add support for disinterrupt function attribute

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: enhancement

          Priority: P3

         Component: target

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: olege...@gcc.gnu.org

            Target: sh*-*-*





For some low-level code it is sometimes useful to temporarily disable

interrupts.   Enabling/disabling interrupts manually can be error prone.  I

think it would be useful to have support for a function attribute that allows

the user to disable interrupts for individual functions.  There is already a

function attribute 'disinterrupt' that is used by the Epiphany and MeP target,

which could be re-used for this purpose.

Reply via email to