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)


> 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 ...


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