This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: hex constants in const_int (plus small altivec problem)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]