CVS: gcc/gcc-3.3/gcc/config/msp430 msp430.c, 1.99.2.3, 1.99.2.4

"Sergey A. Borshch" <[email protected]> Thu, 5 Feb 2009 01:44:46 +0000
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/gcc/gcc-3.3/gcc/config/msp430
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv27173/gcc-3.3/gcc/config/msp430

Modified Files:
      Tag: MSP430X
	msp430.c 
Log Message:
missed condition in epilogue in case of interrupt handler.


Index: msp430.c
===================================================================
RCS file: /cvsroot/mspgcc/gcc/gcc-3.3/gcc/config/msp430/msp430.c,v
retrieving revision 1.99.2.3
retrieving revision 1.99.2.4
diff -u -w -d -r1.99.2.3 -r1.99.2.4
--- msp430.c	5 Feb 2009 01:29:37 -0000	1.99.2.3
+++ msp430.c	5 Feb 2009 01:44:44 -0000	1.99.2.4
@@ -1343,7 +1343,10 @@
               int start_from = interrupt_func_p ? 15 : 11;  /* gcc 3.4.3 fails into segmentation fault without this local */
               for (i = 4; i <= start_from; ++i)
                 {
-                  if (regs_ever_live[i] && !call_used_regs[i])
+                  if ((regs_ever_live[i]
+                      && (!call_used_regs[i] || interrupt_func_p))
+                    || (!leaf_func_p 
+                      && (call_used_regs[i] && interrupt_func_p)))
                     ++num_saved_regs;
                   else if (num_saved_regs)
                     {


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com