From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20064 invoked by alias); 30 Mar 2008 15:17:28 -0000 Received: (qmail 19958 invoked by alias); 30 Mar 2008 15:16:45 -0000 Date: Sun, 30 Mar 2008 15:17:00 -0000 Message-ID: <20080330151645.19957.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "baldrick at free dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg02446.txt.bz2 ------- 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