diff gcc/gimple.c @ 5:a4c410aa4714

modifing gimple.[ch], cfgexpand.c to make gimple to support cbc goto flags.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Thu, 30 Jul 2009 19:22:01 +0900
parents a06113de4d67
children 959d4c8c8abc
line wrap: on
line diff
--- a/gcc/gimple.c	Wed Jul 29 13:46:47 2009 +0900
+++ b/gcc/gimple.c	Thu Jul 30 19:22:01 2009 +0900
@@ -33,6 +33,9 @@
 #include "tree-flow.h"
 #include "value-prof.h"
 #include "flags.h"
+#ifndef noCbC
+#include "cbc-tree.h"
+#endif
 
 #define DEFGSCODE(SYM, NAME, STRUCT)	NAME,
 const char *const gimple_code_name[] = {
@@ -360,6 +363,9 @@
   gimple_call_set_return_slot_opt (call, CALL_EXPR_RETURN_SLOT_OPT (t));
   gimple_call_set_from_thunk (call, CALL_FROM_THUNK_P (t));
   gimple_call_set_va_arg_pack (call, CALL_EXPR_VA_ARG_PACK (t));
+#ifndef noCbC
+  gimple_call_set_cbc_goto (call, CALL_EXPR_CBC_GOTO (t));
+#endif
 
   return call;
 }
@@ -3188,6 +3194,9 @@
   gimple_call_set_return_slot_opt (new_stmt, gimple_call_return_slot_opt_p (stmt));
   gimple_call_set_from_thunk (new_stmt, gimple_call_from_thunk_p (stmt));
   gimple_call_set_va_arg_pack (new_stmt, gimple_call_va_arg_pack_p (stmt));
+#ifndef noCbC
+  gimple_call_set_cbc_goto (new_stmt, gimple_call_cbc_goto_p (stmt));
+#endif
   return new_stmt;
 }