This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: hex constants in const_int (plus small altivec problem)
- From: Joern Rennecke <amylaar at onetel dot net dot uk>
- To: <aldyh at redhat dot com> (Aldy Hernandez)
- Cc: gcc-patches at gcc dot gnu dot org, pinskia at physics dot uc dot edu
- Date: Fri, 20 Dec 2002 05:17:02 +0000 (GMT)
- Subject: Re: RFC: hex constants in const_int (plus small altivec problem)
> So I have the patch below, but the -2147483648 looks absolutely
> hideous. I believe this is the right approach, but I'd like
> comments. If it is ok, I'd like to hack the rtl reader to allow for
> hex constants in .md files, ala:
> (const_int 0x80000000)
Yes, I remember that I had wanted to do that several times too,
but I had always more improtant patches to have reviewed to
bother with this. Conceptually, it's exchanging an atoi with
strtol in read-rtl.c, except that the atoi has brought its friends
atol, atoll and atoq, with a fallback version of atoll, and
their guardian validate_const_int.
So you will also have to muck with configure.in ...