From c045ea5763f0148e0d38dc71174b523c84143d68 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 13 Mar 2019 10:56:32 +0000 Subject: [PATCH] tree-pretty-print.c (dump_generic_node): For -gimple properly dump negative integer constants using _Literal (type) -num. 2019-03-14 Richard Biener * tree-pretty-print.c (dump_generic_node): For -gimple properly dump negative integer constants using _Literal (type) -num. From-SVN: r269645 --- gcc/ChangeLog | 5 +++++ gcc/tree-pretty-print.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 310f8f8081f..73b62b2c917 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-03-14 Richard Biener + + * tree-pretty-print.c (dump_generic_node): For -gimple properly + dump negative integer constants using _Literal (type) -num. + 2019-03-13 Jakub Jelinek * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ccebfc23d25..ae0a6c12072 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1830,7 +1830,8 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags, && (POINTER_TYPE_P (TREE_TYPE (node)) || (TYPE_PRECISION (TREE_TYPE (node)) < TYPE_PRECISION (integer_type_node)) - || exact_log2 (TYPE_PRECISION (TREE_TYPE (node))) == -1)) + || exact_log2 (TYPE_PRECISION (TREE_TYPE (node))) == -1 + || tree_int_cst_sgn (node) < 0)) { pp_string (pp, "_Literal ("); dump_generic_node (pp, TREE_TYPE (node), spc, flags, false); -- 2.30.2