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: Aldy Hernandez <aldyh at redhat dot com>
- To: Joern Rennecke <amylaar at onetel dot net dot uk>
- Cc: gcc-patches at gcc dot gnu dot org, pinskia at physics dot uc dot edu
- Date: Thu, 19 Dec 2002 21:26:50 -0800
- Subject: Re: RFC: hex constants in const_int (plus small altivec problem)
- References: <200212200517.FAA00442@meolyon.local>
On Fri, Dec 20, 2002 at 05:17:02AM +0000, Joern Rennecke wrote:
> > 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 ...
Yeah sure, I'll do it. I just didn't want to start on it if it wasn't
something people would agree on.
Unless I hear otherwise I'll start on it this weekend.
Aldy