From: steven Date: Thu, 20 Oct 2005 20:46:20 +0000 (+0000) Subject: * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR. X-Git-Tag: upstream/4.9.2~58095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd9ee7d176d38ca549ef1015cf26ff7097455900;p=platform%2Fupstream%2Flinaro-gcc.git * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105691 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a6e2a0..d326253 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-10-20 Steven Bosscher + + * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR. + 2005-10-20 Alexandre Oliva PR middle-end/24295 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 90c2730..13868e9 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2937,7 +2937,7 @@ tree_find_edge_insert_loc (edge e, block_stmt_iterator *bsi, if (TREE_CODE (tmp) == RETURN_EXPR) { tree op = TREE_OPERAND (tmp, 0); - if (!is_gimple_val (op)) + if (op && !is_gimple_val (op)) { gcc_assert (TREE_CODE (op) == MODIFY_EXPR); bsi_insert_before (bsi, op, BSI_NEW_STMT);