patch to print large constants as hex values
Jeffrey A Law
law@cygnus.com
Thu Apr 1 02:20:00 GMT 1999
In message <19990331122218.C30107@cygnus.com>you write:
> On Wed, Mar 31, 1999 at 11:44:14AM -0800, Nick Clifton wrote:
> > I would like to submit the following patch for consideration. It
> > creates a new HOST_WIDE_INT printing macro which will either print a
> > value as a decimal number or a hexadecimal number depending upon its
> > magnitude. I find this to be useful when looking at RTL dumps or
> > assembler output since most large constants tend to be simpler to
> > understand as hex values rather than as decimal values.
>
> I don't really like this so much for one reason -- it's now easy to
> lose track of when a constant is negative and when it isn't. This
> is important to 64-bit host cross 32-bit target situations.
Maybe we could print the number in both hex & decimal in the debugging
dumps.
jeff
More information about the Gcc-patches
mailing list