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]

Re: Sign-extend CONST_INTs within their modes


> From: Alexandre Oliva <aoliva@redhat.com>
> Date: 18 Mar 2001 03:24:57 -0300

> I've come up with a patch to detect occurrences of non-sign-extended
> CONST_INTs, and fixed all errors it detected on a port I'm working on,
> in which I enabled 64-bit HOST_WIDE_INTs.  There are certainly more
> bugs lurking around, in chunks of code not exercised by this port, but
> I'd like to install the fixes I've found so far, and maybe the test to
> detect invalid values too (it's the changes in recog.c).
> 
> This has only been tested with the new port.  I intend to test it on
> alpha and probably a few alpha-x-??? crosses.  Suggestions?

FWIW, try it in a Sparc.  I did a half-hearted attempt to
canonicalize CONST_INT:s some time ago as reported.  Things
looked fine on ix86 but failed bootstrap on Sparc.

brgds, H-P


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