summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-02 17:25:41 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-02 17:25:41 +0000
commit2be4661506eee3088b4c210533e1bc33747af9d1 (patch)
treea4a1f6e7da14b2bc2ad11a2414a080351896c240
parent850f3d9bc48e455fee432a312af3a97d0d3bc50b (diff)
downloadgcc-2be4661506eee3088b4c210533e1bc33747af9d1.tar.gz
Display constants as both decimal and hex values
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26141 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/print-rtl.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f1f59181e27..1e01799e198 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 2 17:23:58 1999 Nick Clifton <nickc@cygnus.com>
+
+ * print-rtl.c (print_rtx): Use both HOST_WIDE_INT_PRINT_DEC
+ and HOST_WIDE_INT_PRINT_HEX to display constants.
+
1999-04-02 20:16 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* config/i386/i386.h: Document all TARGET_SWITCHES or add
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index e72a77bf5e9..a94ce0a0bce 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -231,6 +231,9 @@ print_rtx (in_rtx)
case 'w':
fprintf (outfile, " ");
fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, XWINT (in_rtx, i));
+ fprintf (outfile, " [");
+ fprintf (outfile, HOST_WIDE_INT_PRINT_HEX, XWINT (in_rtx, i));
+ fprintf (outfile, "]");
break;
case 'i':