This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug ada/37038] Bogus warning from GCC
- From: Andrew Thomas Pinski <pinskia at gmail dot com>
- To: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 6 Aug 2008 08:44:20 -0700
- Subject: Re: [Bug ada/37038] Bogus warning from GCC
- References: <bug-37038-15321@http.gcc.gnu.org/bugzilla/> <20080806153925.900.qmail@sourceware.org>
Sent from my iPhone
On Aug 6, 2008, at 8:39, "sam at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.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