CVS: gcc/gcc-3.3/gcc/config/msp430 msp430.h,1.32,1.33 msp430.md,1.62,1.63

Dmitry Diky <[email protected]>
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 sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2098

Modified Files:
	msp430.h msp430.md 
Log Message:
add some stubs for profiler
fixed extv


Index: msp430.h
===================================================================
RCS file: /cvsroot/mspgcc/gcc/gcc-3.3/gcc/config/msp430/msp430.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -w -d -r1.32 -r1.33
--- msp430.h	8 Jul 2004 19:21:09 -0000	1.32
+++ msp430.h	10 Aug 2004 12:59:04 -0000	1.33
@@ -50,6 +50,10 @@
 
 extern int target_flags;
 
+#define MASK_PROF_STD		0x00000001
+#define MASK_PROF_LIB		0x00000002
+#define MASK_PROF_STACK		0x00000004
+
 #define MASK_RTL_DUMP		0x00000010
 #define MASK_ALL_DEBUG		0x00000FE0
 #define MASK_FORCE_HWMUL	0x00001000
@@ -63,6 +67,11 @@
 #define MASK_NOINT_HWMUL	0x00200000
 #define MASK_SAVE_PROLOGUE	0x00400000
 
+
+
+#define TARGET_PROF_STD		(target_flags & MASK_PROF_STD)
+#define TARGET_PROF_LIB		(target_flags & MASK_PROF_LIB)
+#define TARGET_PROF_STACK	(target_flags & MASK_PROF_STACK)
 #define TARGET_NO_HWMUL	        (target_flags & MASK_NO_HWMUL)
 #define TARGET_HWMUL		(target_flags & MASK_FORCE_HWMUL)
 #define TARGET_NOINT_HWMUL	(target_flags & MASK_NOINT_HWMUL)
@@ -78,6 +87,9 @@
 
 
 #define TARGET_SWITCHES {						\
+  { "pgs", MASK_PROF_STD, N_("Add ordinary profile information")}, \
+  { "pgl", MASK_PROF_LIB, N_("Add library profile information")}, \
+  { "pgr", MASK_PROF_STACK,N_("Add stack information to profiler") }, \
   { "rtl", MASK_RTL_DUMP, NULL },					\
   { "deb", MASK_ALL_DEBUG, NULL },					\
   { "strict-align", MASK_STRICT_ALIGN,N_("Strict alignment for all structures") }, \

Index: msp430.md
===================================================================
RCS file: /cvsroot/mspgcc/gcc/gcc-3.3/gcc/config/msp430/msp430.md,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -w -d -r1.62 -r1.63
--- msp430.md	29 Mar 2004 06:55:00 -0000	1.62
+++ msp430.md	10 Aug 2004 12:59:05 -0000	1.63
@@ -3105,8 +3105,8 @@
 			(match_operand 2 "const_int_operand" "P,P,i,i,P,P,i,i")))]
  ""
 "* {
-  operands[3] = GEN_INT(1<<INTVAL(operands[3]));
-  return 	\"bit.b\\t%3, %1\\n\"
+  operands[2] = GEN_INT(1<<INTVAL(operands[2]));
+  return 	\"bit.b\\t%2, %1\\n\"
 		\"\\tclr.b\\t%0\\n\"
 		\"\\tadc.b\\t%0\";
 }"



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.