This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2007 15:55:12 -0000
- Subject: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code
- References: <bug-30911-13647@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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