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: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2008 16:15:27 -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 #65 from ebotcazou at gcc dot gnu dot org 2008-03-30 16:15 -------
> So even GNAT assumes parameter values are in-range? Wouldn't that
> cause an bounded error to become an unbounded error if it were
> out-of-range?
GNAT considers that it's an unbounded error in a few specific cases by default,
for example subscripts on the LHS. But not on the RHS (-gnatVs is needed).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30911