r111866 - in /trunk/gcc: ChangeLog fold-const.c

ebotcazou@gcc.gnu.org ebotcazou@gcc.gnu.org
Thu Mar 9 16:11:00 GMT 2006


Author: ebotcazou
Date: Thu Mar  9 16:11:00 2006
New Revision: 111866

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111866
Log:
	* fold-const.c (build_range_check): Make sure to use a valid type to
	apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
	transformation.

	(range_predecessor): New static function.
	(range_successor): Likewise.
	(merge_ranges): Use them to compute predecessors and successors of
	range bounds.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c



More information about the Gcc-cvs mailing list