aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
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/c-tree.h
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/c-tree.h')
-rw-r--r--gcc/c-tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 9d3d2f3..c01cc66 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -556,7 +556,8 @@ extern struct c_expr parser_build_unary_op (location_t, enum tree_code,
extern struct c_expr parser_build_binary_op (location_t,
enum tree_code, struct c_expr,
struct c_expr);
-extern tree build_conditional_expr (location_t, tree, bool, tree, tree);
+extern tree build_conditional_expr (location_t, tree, bool, tree, tree,
+ tree, tree);
extern tree build_compound_expr (location_t, tree, tree);
extern tree c_cast_expr (location_t, struct c_type_name *, tree);
extern tree build_c_cast (location_t, tree, tree);