diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2014-05-21 11:00:35 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-05-21 11:00:35 +0000 |
commit | 632f2871edb2859c94d8fca573a1f74606a14332 (patch) | |
tree | 873a8d60202acd9cd1d79ac86b9a225532e52a1c /gcc/cp/error.c | |
parent | 313822494eef43225468cae7ca35170f2ed5af09 (diff) | |
download | gcc-632f2871edb2859c94d8fca573a1f74606a14332.zip gcc-632f2871edb2859c94d8fca573a1f74606a14332.tar.gz gcc-632f2871edb2859c94d8fca573a1f74606a14332.tar.bz2 |
tree.def (VOID_CST): New.
gcc/
* tree.def (VOID_CST): New.
* tree-core.h (TI_VOID): New.
* tree.h (void_node): New.
* tree.c (tree_node_structure_for_code, tree_code_size)
(iterative_hash_expr): Handle VOID_CST.
(build_common_tree_nodes): Initialize void_node.
gcc/c-family/
* c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
* c-common.c (c_common_nodes_and_builtins): Don't initialize
void_zero_node.
* c-pretty-print.c (pp_c_void_constant): New function.
(c_pretty_printer::constant, c_pretty_printer::primary_expression)
(c_pretty_printer::expression): Handle VOID_CST.
* cilk.c (extract_free_variables): Likewise.
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
(ubsan_instrument_vla): Use void_node instead of void_zero_node.
gcc/c/
* c-array-notation.c (expand_array_notations): Use void_node
instead of void_zero_node.
gcc/cp/
* cvt.c (convert_to_void): Use void_node instead of void_zero_node.
* cp-array-notation.c (replace_invariant_exprs): Likewise.
(expand_array_notation): Handle VOID_CST.
* error.c (dump_expr): Likewise.
* cxx-pretty-print.c (cxx_pretty_printer::primary_expression)
(cxx_pretty_printer::expression): Likewise.
(pp_cxx_new_expression): Use void_node instead of void_zero_node.
* decl.c (register_dtor_fn): Likewise.
* init.c (build_raw_new_expr, build_new_1, build_vec_init)
(build_delete, push_base_cleanups): Likewise.
* mangle.c (write_expression): Likewise.
* semantics.c (finish_break_stmt, empty_expr_stmt_p): Likewise.
* pt.c (tsubst_decl, tsubst_copy_and_build): Likewise.
(tsubst, tsubst_copy, build_non_dependent_expr): Handle VOID_CST.
* tree.c (cp_tree_equal): Likewise.
(build_dummy_object, is_dummy_object, stabilize_expr): Use void_node
instead of void_zero_node.
* typeck.c (check_return_expr): Likewise.
* typeck2.c (build_functional_cast): Likewise.
From-SVN: r210692
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 699d545..b3b5bbb 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1913,6 +1913,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags) pp_cxx_ws_string (pp, M_("<unknown>")); break; + case VOID_CST: case INTEGER_CST: case REAL_CST: case STRING_CST: |