[PATCH] Fixes for a small number of compiler warnings

Ed Schouten ed@nuxi.nl
Wed Apr 1 18:43:00 GMT 2015


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>



More information about the Binutils mailing list