From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17826 invoked by alias); 6 Aug 2008 15:47:38 -0000 Received: (qmail 12470 invoked by alias); 6 Aug 2008 15:46:11 -0000 Date: Wed, 06 Aug 2008 15:47:00 -0000 Message-ID: <20080806154611.12467.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/37038] Bogus warning from GCC In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gmail dot com" 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-08/txt/msg00421.txt.bz2 ------- Comment #3 from pinskia at gmail dot com 2008-08-06 15:46 ------- Subject: Re: Bogus warning from GCC Sent from my iPhone On Aug 6, 2008, at 8:39, "sam at gcc dot gnu dot org" wrote: > > > ------- Comment #2 from sam at gcc dot gnu dot org 2008-08-06 15:39 > ------- > The warning comes from a range check which is emitted by Gigi. The > backend > knows that this check is useless, and warns about it. As far as I > can tell, > there is no way to suppress the warning in shorten_compare (c- > common.c), except > by setting a global option (OPT_Wtype_limits) to false. C-common.c being included by the Ada front-end???? That is a c front- end file. -- Pinski > > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37038 > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37038