aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2009-06-19 20:55:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-06-19 20:55:27 +0000
commitd130ae115657aa4e4c4dab6e56f3c08d44bcdfa8 (patch)
tree1e0b709ce5a70aacdf2f57b1ae07b31bd68bf02e /gcc/tree-cfg.c
parent502c4bb950b3f5f0b1089800123acadf595e12b4 (diff)
downloadgcc-d130ae115657aa4e4c4dab6e56f3c08d44bcdfa8.zip
gcc-d130ae115657aa4e4c4dab6e56f3c08d44bcdfa8.tar.gz
gcc-d130ae115657aa4e4c4dab6e56f3c08d44bcdfa8.tar.bz2
tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK to GIMPLE_ERROR_MARK.
./: * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK to GIMPLE_ERROR_MARK. * c-typeck.c (build_conditional_expr): Add op1_original_type and op2_original_type parameters. Warn about using different enum types. * c-parser.c (c_parser_conditional_expression): Pass original types to build_conditional_expr. * c-tree.h (build_conditional_expr): Update declaration. testsuite/: * gcc.dg/Wcxx-compat-18.c: New testcase. From-SVN: r148727
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 8470d76..4c7c0db 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -4947,7 +4947,7 @@ gimple_redirect_edge_and_branch (edge e, basic_block dest)
gsi = gsi_last_bb (bb);
stmt = gsi_end_p (gsi) ? NULL : gsi_stmt (gsi);
- switch (stmt ? gimple_code (stmt) : ERROR_MARK)
+ switch (stmt ? gimple_code (stmt) : GIMPLE_ERROR_MARK)
{
case GIMPLE_COND:
/* For COND_EXPR, we only need to redirect the edge. */