This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lto]: PATCH COMMITTED to add new tree codes after last merge.


This patch makes the lto code aware of the new tree codes that were
added before the last merge by danny.

2007-10-04  Kenneth Zadeck <zadeck@naturalbridge.com>

    * lto-tree-flags.def (FIXED_CONVERT_EXPR, FIXED_CST, FIXED_POINT_TYPE,
    OMP_SECTIONS_SWITCH): Added new tree codes.
    * lto-function-out.c (lto_static_init): Added types for
FIXED_CONVERT_EXPR,
    FIXED_CST.
    * lto-tree-tags.def (FIXED_CONVERT_EXPR, FIXED_CST): Added mappings.
    * lto-tags.h (LTO_fixed_convert_expr, LTO_fixed_cst): New codes.
Index: lto-tree-flags.def
===================================================================
--- lto-tree-flags.def	(revision 129004)
+++ lto-tree-flags.def	(working copy)
@@ -297,6 +297,17 @@
     START_EXPR_CASE (FILTER_EXPR)
     END_EXPR_CASE (FILTER_EXPR)
       
+    START_EXPR_CASE (FIXED_CONVERT_EXPR)
+    END_EXPR_CASE (FIXED_CONVERT_EXPR)
+      
+    START_EXPR_CASE (FIXED_CST)
+      ADD_EXPR_FLAG (static_flag)
+      ADD_EXPR_FLAG (public_flag)
+    END_EXPR_CASE (FIXED_CST)
+
+    START_EXPR_CASE (FIXED_POINT_TYPE)
+    END_EXPR_CASE (FIXED_POINT_TYPE)
+      
     START_EXPR_CASE (FIX_TRUNC_EXPR)
     END_EXPR_CASE (FIX_TRUNC_EXPR)
       
@@ -487,6 +498,10 @@
     START_EXPR_CASE (OMP_SECTIONS)
     END_EXPR_CASE (OMP_SECTIONS)
       
+    START_EXPR_CASE (OMP_SECTIONS_SWITCH)
+      ADD_EXPR_FLAG (private_flag)
+    END_EXPR_CASE (OMP_SECTIONS_SWITCH)
+      
     START_EXPR_CASE (OMP_SINGLE)
     END_EXPR_CASE (OMP_SINGLE)
       
Index: lto-function-out.c
===================================================================
--- lto-function-out.c	(revision 129004)
+++ lto-function-out.c	(working copy)
@@ -2013,6 +2013,8 @@ lto_static_init (void)
   SET_BIT (lto_types_needed_for, COMPLEX_CST);
   SET_BIT (lto_types_needed_for, CONSTRUCTOR);
   SET_BIT (lto_types_needed_for, CONVERT_EXPR);
+  SET_BIT (lto_types_needed_for, FIXED_CONVERT_EXPR);
+  SET_BIT (lto_types_needed_for, FIXED_CST);
   SET_BIT (lto_types_needed_for, INTEGER_CST);
   SET_BIT (lto_types_needed_for, NOP_EXPR);
   SET_BIT (lto_types_needed_for, REAL_CST);
Index: lto-tree-tags.def
===================================================================
--- lto-tree-tags.def	(revision 129004)
+++ lto-tree-tags.def	(working copy)
@@ -70,6 +70,7 @@
   MAP_EXPR_TAG(CONST_DECL, LTO_const_decl)
   MAP_EXPR_TAG(CONSTRUCTOR, LTO_constructor)
   MAP_EXPR_TAG(FIELD_DECL, LTO_field_decl)
+  MAP_EXPR_TAG(FIXED_CST, LTO_fixed_cst)
   MAP_EXPR_TAG(FUNCTION_DECL, LTO_function_decl)
   MAP_EXPR_TAG(GIMPLE_MODIFY_STMT, LTO_gimple_modify_stmt)
   MAP_EXPR_TAG(INTEGER_CST, LTO_integer_cst)
@@ -106,6 +107,7 @@
   MAP_EXPR_TAG(EXACT_DIV_EXPR, LTO_exact_div_expr)
   MAP_EXPR_TAG(EXC_PTR_EXPR, LTO_exc_ptr_expr)
   MAP_EXPR_TAG(FILTER_EXPR, LTO_filter_expr)
+  MAP_EXPR_TAG(FIXED_CONVERT_EXPR, LTO_fixed_convert_expr)
   MAP_EXPR_TAG(FIX_TRUNC_EXPR, LTO_fix_trunc_expr)
   MAP_EXPR_TAG(FLOAT_EXPR, LTO_float_expr)
   MAP_EXPR_TAG(FLOOR_DIV_EXPR, LTO_floor_div_expr)
@@ -211,6 +213,8 @@
   SET_NAME (LTO_field_decl, "field_decl")
   SET_NAME (LTO_filter_expr, "filter_expr")
   SET_NAME (LTO_fix_trunc_expr, "fix_trunc_expr")
+  SET_NAME (LTO_fixed_cst, "fixed_cst")
+  SET_NAME (LTO_fixed_convert_expr, "fixed_convert_expr")
   SET_NAME (LTO_float_expr, "float_expr")
   SET_NAME (LTO_floor_div_expr, "floor_div_expr")
   SET_NAME (LTO_floor_mod_expr, "floor_mod_expr")
Index: lto-tags.h
===================================================================
--- lto-tags.h	(revision 129004)
+++ lto-tags.h	(working copy)
@@ -325,6 +325,8 @@ enum LTO_tags {
   LTO_exc_ptr_expr,
   LTO_field_decl,
   LTO_filter_expr,
+  LTO_fixed_convert_expr,
+  LTO_fixed_cst,
   LTO_fix_ceil_expr,
   LTO_fix_floor_expr,
   LTO_fix_round_expr,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]