CVS: gcc/gcc-3.3/gcc/config/msp430 msp430.c, 1.99.2.6, 1.99.2.7

"Roman Lim" <[email protected]> Wed, 10 Feb 2010 13:45:25 +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 sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23408/gcc/gcc-3.3/gcc/config/msp430

Modified Files:
      Tag: MSP430X
	msp430.c 
Log Message:
bugfix for bug described in:
http://www.mail-archive.com/[email protected]/msg31642.html
[shift right for more than 16 digits on local variables with source=destination leads to cleared variable]

Index: msp430.c
===================================================================
RCS file: /cvsroot/mspgcc/gcc/gcc-3.3/gcc/config/msp430/msp430.c,v
retrieving revision 1.99.2.6
retrieving revision 1.99.2.7
diff -u -w -d -r1.99.2.6 -r1.99.2.7
--- msp430.c	19 May 2009 09:13:23 -0000	1.99.2.6
+++ msp430.c	10 Feb 2010 13:45:23 -0000	1.99.2.7
@@ -7114,7 +7114,7 @@
       rtx dlo = gen_lowpart (HImode, operands[0]);
       rtx shi = gen_highpart (HImode, dst);
 
-      emit_move_insn (gen_highpart (HImode, operands[0]), const0_rtx);
+      //emit_move_insn (gen_highpart (HImode, operands[0]), const0_rtx);
       emit_insn (gen_extendhisi2 (operands[0], shi));
       x -= 16;
       if (x)
@@ -7292,7 +7292,7 @@
       rtx dlo = gen_lowpart (HImode, operands[0]);
       rtx shi = gen_highpart (HImode, dst);
 
-      emit_move_insn (gen_highpart (HImode, operands[0]), const0_rtx);
+      //emit_move_insn (gen_highpart (HImode, operands[0]), const0_rtx);
       emit_insn (gen_zero_extendhisi2 (operands[0], shi));
       x -= 16;
       if (x)


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev