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

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 23 15:55:00 GMT 2007



------- Comment #24 from rguenth at gcc dot gnu dot org  2007-02-23 15:55 -------
Of course in this case I would have expected VRP or whatever to optimize away

     if not To'Valid then
         raise Constraint_Error;
     end if;

but it looks it is now an unconditional

     raise Constraint_Error;

btw - I failed to manually re-build a file from the rts, what do I need to do
this? (I tried with -gnatpg but that just complains in different ways than
without -gnatpg)


-- 


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



More information about the Gcc-bugs mailing list