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: 64-bit mn10300 prologue bug


On May 18, 2000, Jeffrey A Law <law@cygnus.com> wrote:

>   In message <orya57mzp7.fsf@saci.lsd.ic.unicamp.br>you write:
>> --=-=-=
>> 
>> This patch arranges for an alpha-x-mn10300 cross compiler to generate:
>> 
>> add -4,sp
>> 
>> instead of the 3 bytes longer yet equivalent instruction:
>> 
>> add 4194300,sp
>> 
>> While I was at it, I modified some types so that we'll get correct
>> code on 16-bit hosts, as well as 32-bit and 64-bit ones.

> Wouldn't it make more sense to make size an "unsigned HOST_WIDE_INT"?

I picked `long' because it's guaranteed to be at least 32 bits long,
and that's exactly the number of bits we need.  Not that more bits
would hurt (they wouldn't), but I'd rather not go for a `long long'
when a `long' will do.

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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