[patch] tree.c: Fix latent bugs in upper_bound_in_type and lower_bound_in_type.

Kazu Hirata kazu@codesourcery.com
Fri Jul 8 19:10:00 GMT 2005


Hi Mark,

>>	* tree.c (upper_bound_in_type): Fix calculations for casting
>>	to a non-wider signed type and casting a signed value to a
>>	wider unsigned type.
>>	(lower_bound_in_type): Fix calculations for casting to a
>>	non-wider signed type.
> 
> 
> Ok.

Is this OK for 4.0.x after appropriate testing?  The original post is at:

http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00566.html

According to Andrew Pinski, the problem that my patch above fixes is a 
regression (PR22360), but I do not have any testcase that triggers the 
bug although I can trigger the bug with a fix for another bug.  (That 
is, we have a latent bug here.)

Kazu Hirata



More information about the Gcc-patches mailing list