public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14798] New: In case of SH target with -O2 option #pragma interrupt doesn't get resetted.
@ 2004-03-31 11:11 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
                   ` (20 more replies)
  0 siblings, 21 replies; 24+ messages in thread
From: anilp1 at kpitcummins dot com @ 2004-03-31 11:11 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <bug-14798-6675@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-30 23:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-31 11:11 [Bug target/14798] New: In case of SH target with -O2 option #pragma interrupt doesn't get resetted 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
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
     [not found] <bug-14798-6675@http.gcc.gnu.org/bugzilla/>
2005-10-30 22:09 ` pinskia at gcc dot gnu dot org
2005-10-30 23:39 ` pinskia at gcc dot gnu dot org

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).