[M3commit] CVS Update: cm3

Jay K jay.krell at cornell.edu
Tue Jun 29 14:09:26 CEST 2010


Index: gcc/gcc/m3cg/parse.c
===================================================================
RCS file: /usr/cvs/cm3/m3-sys/m3cc/gcc/gcc/m3cg/parse.c,v
retrieving revision 1.202
diff -u -r1.202 parse.c
--- gcc/gcc/m3cg/parse.c    29 Jun 2010 11:59:29 -0000    1.202
+++ gcc/gcc/m3cg/parse.c    29 Jun 2010 12:07:03 -0000
@@ -4412,8 +4412,7 @@
 {
   MTYPE (t);
 
-  EXPR_REF (-1) = m3_build1 (BIT_NOT_EXPR, m3_unsigned_type (t),
-                             EXPR_REF (-1));
+  EXPR_REF (-1) = m3_build1 (BIT_NOT_EXPR, t, m3_cast (t, EXPR_REF (-1)));
 }
 
 static void
@@ -4421,8 +4420,9 @@
 {
   MTYPE (t);
 
-  EXPR_REF (-2) = m3_build2 (BIT_AND_EXPR, m3_unsigned_type (t),
-                             EXPR_REF (-2), EXPR_REF (-1));
+  EXPR_REF (-2) = m3_build2 (BIT_AND_EXPR, t,
+                             m3_cast (t, EXPR_REF (-2)),
+                             m3_cast (t, EXPR_REF (-1)));
   EXPR_POP ();
 }
 
@@ -4431,8 +4431,9 @@
 {
   MTYPE (t);
 
-  EXPR_REF (-2) = m3_build2 (BIT_IOR_EXPR, m3_unsigned_type (t),
-                             EXPR_REF (-2), EXPR_REF (-1));
+  EXPR_REF (-2) = m3_build2 (BIT_IOR_EXPR, t,
+                             m3_cast (t, EXPR_REF (-2)),
+                             m3_cast (t, EXPR_REF (-1)));
   EXPR_POP ();
 }
 
@@ -4441,8 +4442,9 @@
 {
   MTYPE (t);
 
-  EXPR_REF (-2) = m3_build2 (BIT_XOR_EXPR, m3_unsigned_type (t),
-                             EXPR_REF (-2), EXPR_REF (-1));
+  EXPR_REF (-2) = m3_build2 (BIT_XOR_EXPR, t,
+                             m3_convert (t, EXPR_REF (-2)),
+                             m3_convert (t, EXPR_REF (-1)));
   EXPR_POP ();
 }
 


----------------------------------------
> Date: Tue, 29 Jun 2010 14:08:31 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
>
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 10/06/29 14:08:31
>
> Modified files:
> cm3/m3-sys/m3cc/gcc/gcc/m3cg/: parse.c
>
> Log message:
> Start fixing configure -enable-checking problems.
> Start with the very simplest: bit-or/and/xor/not.
> There are some small changes in m3core as a result but
> they don't appear to be semantically interesting, mostly stuff like:
> - movq -32(%rbp), %rdx
> - movq -24(%rbp), %rax
> + movq -24(%rbp), %rdx
> + movq -32(%rbp), %rax
> orq %rdx, %rax
>
> when I tried reversing the parameter order, the changes where larger.
>
 		 	   		  


More information about the M3commit mailing list