Reorder some tree codes

Mark Mitchell mark@codesourcery.com
Wed Dec 22 18:59:00 GMT 2004


Nathan Sidwell wrote:
> Zack Weinberg wrote:
> 
>> Reducing the width of IN_RANGE from unsigned HOST_WIDE_INT to unsigned
>> makes me nervous.  Why did you need to do that?
> 
> 
> I had thought that IN_RANGE was no longer used anywhere, but clearly
> I had a grep malfunction.  I've now found one other use in java/lex.c, 
> where
> the value is a unicode_t type.  I was worried about lame sign extensions
> confusing things where HOST_WIDE_INT was wider than plain unsigned.

The majority of the uses are actually in config/*/*.c, which surprised 
me as well.  Some of those operate on INTVAL, so I think that it 
probably is incorrect to use anything except HOST_WIDE_INT, sad though 
that is.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc-patches mailing list