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



             Bug #: 55301

           Summary: [SH] broken sp_switch function attribute

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: target

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

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

            Target: sh*-*-*





The example from the sp_switch function attribute documentation:



void* alt_stack;



void f (void) __attribute__ ((interrupt_handler, sp_switch ("alt_stack")));



void f (void)

{

}



results in



sh_tmp.cpp: In function 'void f()':

sh_tmp.cpp:9:1: error: unrecognizable insn:

(insn 8 3 9 2 (parallel [

            (const_int 1 [0x1])

            (mem/u/c:SI (label_ref 0) [0 S4 A32])

        ]) sh_tmp.cpp:8 -1

     (nil))

sh_tmp.cpp:9:1: internal compiler error: in extract_insn, at recog.c:2109



This happens on 4.8, 4.7 branch and 4.6 branch.

Reply via email to