[PATCH] Fix PR 40172 -- bootstrap breakage on some targets caused by fix for PR16302.

Manuel López-Ibáñez lopezibanez@gmail.com
Tue May 19 08:17:00 GMT 2009


2009/5/19 David Daney <ddaney@caviumnetworks.com>:
> The fix for PR 16302 caused -Wlogical-op (part of the default -Wextra) to
> generate fatal warning for some code in GCC.
>
> I propose that we supply -Wno-logical-op as a fix.

-Wlogical-op was added to -Wextra in GCC 4.5, so this can be reverted
changing 4 lines. It is likely that, if it causes trouble for GCC, it
will case trouble for other codebases. That would be my preferred
option, short of fixing -Wlogical-op to not warn about macros, which
is impossible given GCC current capabilities.

Cheers,

Manuel.



More information about the Gcc-patches mailing list