This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [Bug target/14798] [3.4/4.0/4.1/4.2 Regression] In case of SH target with -O2 option #pragma interrupt doesn't get resetted.


Hi,

Please refer to following link for the bug, 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14798 

Please review following patch for above bug,

ChangeLog
2005-12-19      Anil Paranjpe <anilp1@kpitcummins.com>
        * sh/sh.c (sh_insert_attributes) : Reset pragma_interrupt after
inserting interrupt_handler attribute.

Patch text
******************************************************************
--- gcc-4.2-20051217/gcc/config/sh/sh.c.orig	2005-12-19
17:36:25.000000000 +0530
+++ gcc-4.2-20051217/gcc/config/sh/sh.c	2005-12-19 17:38:23.000000000
+0530
@@ -7479,7 +7479,7 @@ sh_insert_attributes (tree node, tree *a
 
   /* Add a 'handle_interrupt' attribute.  */
   * attributes = tree_cons (get_identifier ("interrupt_handler"), NULL,
* attributes);
-
+    pragma_interrupt = 0;
   return;
 }
******************************************************************
 
Regards,
Anil Paranjpe
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on October 12, 2005.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]