From: Paolo Carlini Date: Wed, 20 Dec 2017 18:40:33 +0000 (+0000) Subject: gimplify.c (gimplify_return_expr): Remove dead error_mark_node check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76a2bcdcd82326736301cba35250bb1a7fa841c1;p=gcc.git gimplify.c (gimplify_return_expr): Remove dead error_mark_node check. 2017-12-20 Paolo Carlini * gimplify.c (gimplify_return_expr): Remove dead error_mark_node check. From-SVN: r255900 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f23a2b8860..617dba91892 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,12 @@ +2017-12-20 Paolo Carlini + + * gimplify.c (gimplify_return_expr): Remove dead error_mark_node check. + 2017-12-20 Martin Sebor PR testsuite/83131 * builtins.c (expand_builtin_strlen): Use get_callee_fndecl. - (expand_builtin_strcmp): Call maybe_warn_nonstring_arg. + (expand_builtin_strcmp): Call maybe_warn_nonstring_arg. (expand_builtin_strncmp): Same. 2017-12-20 Alexandre Oliva diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 9da462569f6..947580759e3 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -1500,8 +1500,7 @@ gimplify_return_expr (tree stmt, gimple_seq *pre_p) return GS_ERROR; if (!ret_expr - || TREE_CODE (ret_expr) == RESULT_DECL - || ret_expr == error_mark_node) + || TREE_CODE (ret_expr) == RESULT_DECL) { maybe_add_early_return_predict_stmt (pre_p); greturn *ret = gimple_build_return (ret_expr);