From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22821 invoked by alias); 23 Feb 2007 16:01:31 -0000 Received: (qmail 22772 invoked by alias); 23 Feb 2007 16:01:19 -0000 Date: Fri, 23 Feb 2007 16:01:00 -0000 Message-ID: <20070223160119.22771.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: 2007-02/txt/msg02687.txt.bz2 ------- Comment #26 from baldrick at free dot fr 2007-02-23 16:01 ------- Subject: Re: VRP fails to eliminate range checks in Ada code > 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; Some of the other tests are showing similar behaviour. > 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) What does it complain about with -gnatpg? Without it, it probably complains that you are not allowed to compile children of package Ada, or something like that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30911