From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12777 invoked by alias); 13 Nov 2012 00:07:33 -0000 Received: (qmail 12534 invoked by uid 48); 13 Nov 2012 00:07:17 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55301] New: [SH] broken sp_switch function attribute Date: Tue, 13 Nov 2012 00:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01085.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: olegendo@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.