This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fixes for a small number of compiler warnings


On Wed, Apr 1, 2015 at 11:43 AM, Ed Schouten <ed@nuxi.nl> wrote:
> 2015-04-01 17:16 GMT+02:00 H.J. Lu <hjl.tools@gmail.com>:
>> +#if defined(__GNUC__) && GCC_VERSION < 4006
>
> So the issue with this expression is that this also evaluates to true
> when using Clang. Clang also defines __GNUC__ as it implements most
> GNU-specific constructs. It has to define this to make existing code
> out there work.
>
> This makes the code work for me:
>
> #if defined(__GNUC__) && GCC_VERSION < 4006 && !defined(__clang__)
>
> --
> Ed Schouten <ed@nuxi.nl>

Please configure binutils with --disable-werror.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]