Commit 1e66ce77 by Richard Kenner

(print_node{,_brief}, case INTEGER_CST): Use HOST_WIDE_INT_PRINT_*.

From-SVN: r13176
parent 734de8c8
/* Prints out tree in human readable form - GNU C-compiler /* Prints out tree in human readable form - GNU C-compiler
Copyright (C) 1990, 1991, 1993, 1994, 1995 Free Software Foundation, Inc. Copyright (C) 1990, 91, 93, 94, 95, 1996 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -109,38 +109,18 @@ print_node_brief (file, prefix, node, indent) ...@@ -109,38 +109,18 @@ print_node_brief (file, prefix, node, indent)
if (TREE_CONSTANT_OVERFLOW (node)) if (TREE_CONSTANT_OVERFLOW (node))
fprintf (file, " overflow"); fprintf (file, " overflow");
fprintf (file, " ");
if (TREE_INT_CST_HIGH (node) == 0) if (TREE_INT_CST_HIGH (node) == 0)
fprintf (file, fprintf (file, HOST_WIDE_INT_PRINT_UNSIGNED, TREE_INT_CST_LOW (node));
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
" %1u",
#else
" %1lu",
#endif
TREE_INT_CST_LOW (node));
else if (TREE_INT_CST_HIGH (node) == -1 else if (TREE_INT_CST_HIGH (node) == -1
&& TREE_INT_CST_LOW (node) != 0) && TREE_INT_CST_LOW (node) != 0)
fprintf (file, {
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT fprintf (file, "-");
" -%1u", fprintf (file, HOST_WIDE_INT_PRINT_UNSIGNED,
#else
" -%1lu",
#endif
-TREE_INT_CST_LOW (node)); -TREE_INT_CST_LOW (node));
}
else else
fprintf (file, fprintf (file, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
#if HOST_BITS_PER_WIDE_INT == 64
#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
" 0x%lx%016lx",
#else
" 0x%x%016x",
#endif
#else
#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
" 0x%lx%08lx",
#else
" 0x%x%08x",
#endif
#endif
TREE_INT_CST_HIGH (node), TREE_INT_CST_LOW (node)); TREE_INT_CST_HIGH (node), TREE_INT_CST_LOW (node));
} }
if (TREE_CODE (node) == REAL_CST) if (TREE_CODE (node) == REAL_CST)
...@@ -622,38 +602,19 @@ print_node (file, prefix, node, indent) ...@@ -622,38 +602,19 @@ print_node (file, prefix, node, indent)
if (TREE_CONSTANT_OVERFLOW (node)) if (TREE_CONSTANT_OVERFLOW (node))
fprintf (file, " overflow"); fprintf (file, " overflow");
fprintf (file, " ");
if (TREE_INT_CST_HIGH (node) == 0) if (TREE_INT_CST_HIGH (node) == 0)
fprintf (file, fprintf (file, HOST_WIDE_INT_PRINT_UNSIGNED,
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
" %1u",
#else
" %1lu",
#endif
TREE_INT_CST_LOW (node)); TREE_INT_CST_LOW (node));
else if (TREE_INT_CST_HIGH (node) == -1 else if (TREE_INT_CST_HIGH (node) == -1
&& TREE_INT_CST_LOW (node) != 0) && TREE_INT_CST_LOW (node) != 0)
fprintf (file, {
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT fprintf (file, "-");
" -%1u", fprintf (file, HOST_WIDE_INT_PRINT_UNSIGNED,
#else -TREE_INT_CST_LOW (node));
" -%1lu", }
#endif
-TREE_INT_CST_LOW (node));
else else
fprintf (file, fprintf (file, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
#if HOST_BITS_PER_WIDE_INT == 64
#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
" 0x%lx%016lx",
#else
" 0x%x%016x",
#endif
#else
#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
" 0x%lx%08lx",
#else
" 0x%x%08x",
#endif
#endif
TREE_INT_CST_HIGH (node), TREE_INT_CST_LOW (node)); TREE_INT_CST_HIGH (node), TREE_INT_CST_LOW (node));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment