[PATCH] Fix PR35823, wrong types in optimize_minmax_comparison

Eric Botcazou ebotcazou@adacore.com
Sun Apr 6 03:20:00 GMT 2008


> 2008-04-04  Richard Guenther  <rguenther@suse.de>
>
> 	PR middle-end/35823
> 	* fold-const.c (optimize_minmax_comparison): Use the correct
> 	type for the constant in the simplified comparison.

Thanks for fixing the problem, this had a significant impact on our automatic 
regression tester.  AFAICS a few similar problems still exist, I'll look into 
them over the next few days.

> 	* gnat.dg/pr35823.adb: New testcase.

I took the liberty to rename it to size_attribute.adb, we like descriptive 
names here. :-)

-- 
Eric Botcazou



More information about the Gcc-patches mailing list