diff options
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index cd44f15..380a526 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1331,38 +1331,9 @@ dump_expr (tree t, int flags) break; case INTEGER_CST: - { - tree type = TREE_TYPE (t); - my_friendly_assert (type != 0, 81); - - /* If it's an enum, output its tag, rather than its value. */ - if (TREE_CODE (type) == ENUMERAL_TYPE) - { - tree values = TYPE_VALUES (type); - - for (; values; - values = TREE_CHAIN (values)) - if (tree_int_cst_equal (TREE_VALUE (values), t)) - break; - - if (values) - pp_tree_identifier (cxx_pp, TREE_PURPOSE (values)); - else - { - /* Value must have been cast. */ - pp_left_paren (cxx_pp); - dump_type (type, flags); - pp_right_paren (cxx_pp); - pp_c_integer_literal (pp_c_base (cxx_pp), t); - } - } - else - pp_c_integer_literal (pp_c_base (cxx_pp), t); - } - break; - + case STRING_CST: case REAL_CST: - pp_c_real_literal (pp_c_base (cxx_pp), t); + pp_c_constant (pp_c_base (cxx_pp), t); break; case PTRMEM_CST: @@ -1372,10 +1343,6 @@ dump_expr (tree t, int flags) pp_tree_identifier (cxx_pp, DECL_NAME (PTRMEM_CST_MEMBER (t))); break; - case STRING_CST: - pp_c_string_literal (pp_c_base (cxx_pp), t); - break; - case COMPOUND_EXPR: pp_left_paren (cxx_pp); dump_expr (TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS); |