public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "anilp1 at kpitcummins dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/14798] [3.4/3.5 Regression] [unit-at-a-time?] In case of SH target with -O2 option #pragma interrupt doesn't get resetted. Date: Thu, 15 Apr 2004 13:20:00 -0000 [thread overview] Message-ID: <20040415124603.16006.qmail@sources.redhat.com> (raw) In-Reply-To: <20040331111136.14798.anilp1@kpitcummins.com> ------- Additional Comments From anilp1 at kpitcummins dot com 2004-04-15 12:46 ------- Subject: RE: New: In case of SH target with -O2 option #pragma interrupt doesn't get resetted. Hi, Please find following patch for bug no. 14798, ChangeLog 2004-04-15 Anil Paranjpe <anilp1@kpitcummins.com> * sh/sh.c (sh_insert_attributes) : Flag pragma_interrupt is set to zero. --- gcc/config/sh/sh.c.old 2004-04-15 17:25:30.000000000 +0530 +++ gcc/config/sh/sh.c 2004-04-15 17:36:08.000000000 +0530 @@ -6688,7 +6688,7 @@ sh_insert_attributes (tree node, tree *a if (! pragma_interrupt || TREE_CODE (node) != FUNCTION_DECL) return; - + pragma_interrupt = 0; /* We are only interested in fields. */ if (TREE_CODE_CLASS (TREE_CODE (node)) != 'd') return; Regards, Anil Paranjpe -----Original Message----- From: anilp1 at kpitcummins dot com [mailto:gcc-bugzilla@gcc.gnu.org] Sent: Wednesday, March 31, 2004 4:42 PM To: Anil Paranjape Subject: [Bug target/14798] New: In case of SH target with -O2 option #pragma interrupt doesn't get resetted. Hi, I am using GCC 3.4 snapshot dated 17-03-2004.Please find following testcase which to produce the bug. test.c ************************************************************* #pragma interrupt void isr() { } void delay(int a) { } int main() { return 0; } ************************************************************* Above test code is compiled with following options to gcc, -m2e -S -O2 Since #pragma interrupt is written above "isr", so only "isr" should be treated as interrupt handler. But the functions mentioned below "isr" are also treated as interrupt handlers i.e. it saves all registers and generates "rte" instead of "rts". Compiler should treat only "isr" as interuupt handler. Regards, Anil Paranjpe -- Summary: In case of SH target with -O2 option #pragma interrupt doesn't get resetted. Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: critical Priority: P1 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anilp1 at kpitcummins dot com CC: anilp1 at kpitcummins dot com,gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh-unknown-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14798 ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. You are on the CC list for the bug, or are watching someone who is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14798
next prev parent reply other threads:[~2004-04-15 12:46 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-31 11:11 [Bug target/14798] New: " anilp1 at kpitcummins dot com 2004-03-31 12:45 ` [Bug target/14798] [3.4/3.5 Regression] [unit-at-a-time?] " pinskia at gcc dot gnu dot org 2004-04-15 13:20 ` anilp1 at kpitcummins dot com [this message] 2004-04-15 13:22 ` pinskia at gcc dot gnu dot org 2004-05-29 20:06 ` mmitchel at gcc dot gnu dot org 2004-06-01 4:19 ` aoliva at gcc dot gnu dot org 2004-06-01 6:49 ` anilp1 at kpitcummins dot com 2004-06-01 8:19 ` wilson at specifixinc dot com 2004-06-02 5:55 ` aoliva at gcc dot gnu dot org 2004-06-08 6:21 ` wilson at specifixinc dot com 2004-06-08 6:29 ` anilp1 at kpitcummins dot com 2004-06-09 14:09 ` pinskia at gcc dot gnu dot org 2004-06-19 0:04 ` [Bug target/14798] [3.4/3.5 Regression] " mmitchel at gcc dot gnu dot org 2004-07-12 10:17 ` anilp1 at kpitcummins dot com 2004-08-12 8:13 ` steven at gcc dot gnu dot org 2004-08-23 20:56 ` mmitchel at gcc dot gnu dot org 2004-10-31 2:08 ` [Bug target/14798] [3.4/4.0 " mmitchel at gcc dot gnu dot org 2004-12-01 18:19 ` pinskia at gcc dot gnu dot org 2004-12-20 1:16 ` pinskia at gcc dot gnu dot org 2005-01-19 18:43 ` mmitchel at gcc dot gnu dot org 2005-03-05 19:47 ` [Bug target/14798] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org 2005-08-22 1:28 ` mmitchel at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040415124603.16006.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).