This is the mail archive of the gcc-bugs@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]

[Bug target/18898] [SH target], internal compiler error (ICE): for given code if using #pragma interrupt


------- Additional Comments From asgarij at kpitcummins dot com  2004-12-22 09:47 -------
Following patch removes the ice. Please review.

--- gcc-3.4-20040813/gcc/config/sh/sh.orig.c	2004-12-08 10:55:41.000000000 
+0530
+++ gcc-3.4-20040813/gcc/config/sh/sh.c	2004-12-08 10:54:06.000000000 +0530
@@ -5565,7 +5565,7 @@ sh_expand_prologue (void)
   target_flags = save_flags;
 
   output_stack_adjust (-rounded_frame_size (d) + d_rounding,
-		       stack_pointer_rtx, 0, NULL);
+		       stack_pointer_rtx, 0, &live_regs_mask);
 
   if (frame_pointer_needed)
     frame_insn (GEN_MOV (frame_pointer_rtx, stack_pointer_rtx));

Regards,
Asgari Jinia
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 are released on Oct 1, 2004. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-- 


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


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