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: mn10300 64-bit clean-up


On May 20, 2000, Richard Henderson <rth@cygnus.com> wrote:

>> -	  /* On machines where HOST_BITS_PER_WIDE_INT == BITS_PER_WORD
>> -	     the shift below will cause a compiler warning, even though
>> -	     this code won't be executed.  So put the shift amounts in
>> -	     variables to avoid the warning.  */
> [...]
>> +	  high >>= BITS_PER_WORD - 1;
>> +	  high >>= 1;

> That comment is largely applicable here.

I don't see why.  Since we're always shifting by less than
BITS_PER_WORD <= HOST_BITS_PER_WIDE_INT, there's no room for a
warning.  What am I missing?

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