[Bug target/105435] clang warning about Wtautological-constant-compare for a target macro
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 2 05:47:01 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105435
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|diagnostic |
Summary|Wtautological-constant-comp |clang warning about
|are warning in trunk build |Wtautological-constant-comp
| |are for a target macro
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The easiest fix is to change:
if (TARGET_ARM_FP)
To:
if (TARGET_ARM_FP != 0)
But then again clang maybe should not warn when this is coming from a macro.
More information about the Gcc-bugs
mailing list