comparison gcc/gimplify.c @ 73:ce75bd9117e4

merge calls.c, cfgexpand.c, gcc.c, gimple.c, gimple.h and gimplify.c
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Mon, 22 Aug 2011 01:54:47 +0900
parents b81903832de2
children ab0bcb71f44d
comparison
equal deleted inserted replaced
72:20c18990c3e4 73:ce75bd9117e4
44 #include "pointer-set.h" 44 #include "pointer-set.h"
45 #include "splay-tree.h" 45 #include "splay-tree.h"
46 #include "vec.h" 46 #include "vec.h"
47 #include "gimple.h" 47 #include "gimple.h"
48 #include "tree-pass.h" 48 #include "tree-pass.h"
49 #ifndef noCbC
50 #include "cbc-tree.h"
51 #endif
49 52
50 #include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name. */ 53 #include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name. */
51 #include "expr.h" /* FIXME: for can_move_by_pieces 54 #include "expr.h" /* FIXME: for can_move_by_pieces
52 and STACK_CHECK_MAX_VAR_SIZE. */ 55 and STACK_CHECK_MAX_VAR_SIZE. */
53 56
1232 gimple_set_no_warning (ret, TREE_NO_WARNING (stmt)); 1235 gimple_set_no_warning (ret, TREE_NO_WARNING (stmt));
1233 gimplify_seq_add_stmt (pre_p, ret); 1236 gimplify_seq_add_stmt (pre_p, ret);
1234 return GS_ALL_DONE; 1237 return GS_ALL_DONE;
1235 } 1238 }
1236 1239
1237 if (VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl)))) 1240 if (VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl)))
1241 #ifndef noCbC
1242 || ( ret_expr
1243 && TREE_CODE(ret_expr)==CALL_EXPR
1244 && CbC_IS_CbC_GOTO(ret_expr)
1245 //&& !CbC_IS_CODE_SEGMENT(TREE_TYPE(current_function_decl)))
1246 && !(current_function_decl&&CbC_IS_CODE_SEGMENT(TREE_TYPE(current_function_decl))))
1247 //&& !(current_function_decl&&CbC_IS_CODE_SEGMENT(current_function_decl)))
1248 #endif
1249 )
1238 result_decl = NULL_TREE; 1250 result_decl = NULL_TREE;
1239 else 1251 else
1240 { 1252 {
1241 result_decl = TREE_OPERAND (ret_expr, 0); 1253 result_decl = TREE_OPERAND (ret_expr, 0);
1242 1254