diff options
author | Richard Biener <rguenther@suse.de> | 2019-03-13 10:56:32 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-03-13 10:56:32 +0000 |
commit | c045ea5763f0148e0d38dc71174b523c84143d68 (patch) | |
tree | edc99473db304f0ee08a614d2e63d0bd6cbfab51 /gcc/tree-pretty-print.c | |
parent | 31ba0418a27bb61df31bb5fcdbe380288f3b10cf (diff) | |
download | gcc-c045ea5763f0148e0d38dc71174b523c84143d68.zip gcc-c045ea5763f0148e0d38dc71174b523c84143d68.tar.gz gcc-c045ea5763f0148e0d38dc71174b523c84143d68.tar.bz2 |
tree-pretty-print.c (dump_generic_node): For -gimple properly dump negative integer constants using _Literal (type) -num.
2019-03-14 Richard Biener <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): For -gimple properly
dump negative integer constants using _Literal (type) -num.
From-SVN: r269645
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ccebfc2..ae0a6c1 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); |