This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can hex numbers appear as a const_int in md files?
- From: DJ Delorie <dj at redhat dot com>
- To: ghazi at caip dot rutgers dot edu
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 19 Nov 2001 00:14:58 -0500
- Subject: Re: Can hex numbers appear as a const_int in md files?
- References: <200111190240.VAA24992@caip.rutgers.edu>
> So I tried changing the constant to 0x80000000 but the resulting code
> in insn-recog.c showed a zero. I'm pretty sure this is because the
> hex number is being passed to atoi/atol in read-rtx.c.
Yup. Decimal numbers only. We'd need a portable strtoll() (without
libiberty too, until we have a build-libiberty) to support hex.
> However, I notice in several places that hex numbers are used in this
> same context in other md files. So what's up? Are these below all
> bugs?
They're all bugs. At least, the 1750a and i386 ones are.