[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

baldrick at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 22 17:41:00 GMT 2007



------- Comment #6 from baldrick at gcc dot gnu dot org  2007-02-22 17:41 -------
> Bonus points if you can reduce this to a C test case ;-)
> Starting with the gimple dumps, this is usually not hard to do.

It can't be reduced because it relies on integer types with restricted ranges,
i.e. TYPE_MIN_VALUE and/or TYPE_MAX_VALUE different from what you'd get from
TYPE_PRECISION and the signedness.  Adding some kind of attribute to C so that
you can create similar types there would be helpful.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30911



More information about the Gcc-bugs mailing list