This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- Comment #61 from baldrick at free dot fr  2008-03-30 15:16 -------
Subject: Re:  VRP fails to eliminate range checks in Ada code

> > And here's a testcase that was supposed to check that
> > VRP is not removing checks that array accesses are in
> > range.  Instead it shows that the Ada f-e is failing
> > to generate checks at all!
> 
> Even with -gnato?

Yes, even with -gnato.  With -gnato it checks that the
addition doesn't overflow.  But there are no checks on
the array access.  It looks like the f-e doesn't generate
them in the first place (as opposed to fold or gigi making
a mistake).


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]