[M3commit] CVS Update: cm3

Jay jay.krell at cornell.edu
Sat May 16 01:07:06 CEST 2009


Here is this diff:
 
Index: gcc/gcc/m3cg/parse.c
===================================================================
RCS file: /usr/cvs/cm3/m3-sys/m3cc/gcc/gcc/m3cg/parse.c,v
retrieving revision 1.95
diff -u -r1.95 parse.c
--- gcc/gcc/m3cg/parse.c 15 May 2009 12:38:18 -0000 1.95
+++ gcc/gcc/m3cg/parse.c 15 May 2009 23:03:45 -0000
@@ -5382,6 +5382,18 @@
     }
 }
 
+#ifdef GCC42
+int flag_iasm_blocks;
+enum iasm_states iasm_state;
+bool iasm_in_operands;
+struct cpp_reader* parse_in;
+#define add_stmt c_add_stmt
+#include "../stub-objc.c"
+c_language_kind c_language;
+/* This is used by cfstring code; providing it here makes us not have to #if 0 out a few bits. */
+tree pushdecl_top_level (tree x) { gcc_unreachable(); return NULL_TREE; }
+#endif
+
 /* New garbage collection regime see gty.texi.  */
 #include "debug.h"
 #include "gtype-m3cg.h"
Index: gcc-apple/gcc/convert.c
===================================================================
RCS file: /usr/cvs/cm3/m3-sys/m3cc/gcc-apple/gcc/convert.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 convert.c
--- gcc-apple/gcc/convert.c 15 May 2009 08:41:28 -0000 1.1.1.1
+++ gcc-apple/gcc/convert.c 15 May 2009 23:03:46 -0000
@@ -803,6 +803,7 @@
     }
 }
 
+#if 0 /* remove from cm3 -- we don't have build_stmt, store_init_value, which are I think part of the C frontend */
 /* APPLE LOCAL begin AltiVec */
 /* Build a COMPOUND_LITERAL_EXPR.  TYPE is the type given in the compound
    literal.  INIT is a CONSTRUCTOR that initializes the compound literal.  */
@@ -827,6 +828,7 @@
   return complit;
 }
 /* APPLE LOCAL end AltiVec */
+#endif /* remove from cm3 */
 
 /* Convert EXPR to the vector type TYPE in the usual ways.  */
 
@@ -842,6 +844,7 @@
    error ("can't convert between vector values of different size");
    return error_mark_node;
  }
+#if 0 /* remove from cm3 -- we don't have the code it needs */
       /* APPLE LOCAL begin AltiVec */
       if (TREE_CODE (type) == VECTOR_TYPE  
    && TREE_CODE (TREE_TYPE (expr)) == VECTOR_TYPE
@@ -849,7 +852,7 @@
    /* converting a constant vector to new vector type with Motorola Syntax. */
    return convert (type, build_compound_literal_vector (TREE_TYPE (expr), expr));
       /* APPLE LOCAL end AltiVec */
-
+#endif /* remove from cm3 -- we don't have the code it needs */
       return build1 (VIEW_CONVERT_EXPR, type, expr);
 
     default:

 - Jay







----------------------------------------
> Date: Sat, 16 May 2009 01:05:43 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
>
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 09/05/16 01:05:43
>
> Modified files:
> cm3/m3-sys/m3cc/gcc/gcc/m3cg/: parse.c
> cm3/m3-sys/m3cc/gcc-apple/gcc/: convert.c
>
> Log message:
> some small adapations and now it builds
> specifically remove the Apple-specific compound literal thing
> and put in some some variables and one unused function in parse.c
> all of which are referenced
>


More information about the M3commit mailing list