bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BFD compile time warning fixes


From: Alan Modra
Subject: Re: BFD compile time warning fixes
Date: Sat, 22 Sep 2001 09:46:07 +0930
User-agent: Mutt/1.3.17i

On Fri, Sep 21, 2001 at 03:22:10PM +0100, Nick Clifton wrote:
>   following warnings remain:
> 
>     bfd/elf32-hppa.c: In function `elf32_hppa_check_relocs':
>     bfd/elf32-hppa.c:1588: warning: suggest parentheses around && within ||
>     bfd/elf32-hppa.c: In function `elf32_hppa_relocate_section':
>     bfd/elf32-hppa.c:3936: warning: suggest parentheses around && within ||

These warnings are due to a gcc bug.  You get the erroneous warning with
constructs like the following:

int foo (int a, int b)
{
  return (a && b && 1) || 0;
}

Alan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]