This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new warnings building cp-demangle.c
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: iant at google dot com, gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 18 May 2009 17:34:22 -0700
- Subject: Re: new warnings building cp-demangle.c
- References: <1242692901.16289.5.camel@helios>
- Reply-to: janis187 at us dot ibm dot com
On Tue, 2009-05-19 at 10:28 +1000, Ben Elliston wrote:
> Hi Ian
>
> In the last couple of days, I have started seeing the following warnings
> when building target-libiberty:
>
> /home/bje/source/gcc-clean/libiberty/cp-demangle.c:723: warning: logical âandâ of mutually exclusive tests is always false
> /home/bje/source/gcc-clean/libiberty/cp-demangle.c:742: warning: logical âandâ of mutually exclusive tests is always false
>
> The code around line 723 is:
>
> if (p == NULL
> || name == NULL
> || (kind < gnu_v3_complete_object_ctor
> && kind > gnu_v3_complete_object_allocating_ctor))
> return 0;
>
> (and similarly for line 742). A bug?
A much-discussed bug: http://gcc.gnu.org/PR40172
Janis