On 09/20/16 13:29, Kyrill Tkachov wrote: > > arm bootstrap is now failing: > $SRC/gcc/config/arm/arm.h:2229:40: error: ?: using integer constants in > boolean context [-Werror=int-in-bool-context] > : (TARGET_VFP_DOUBLE ? (TARGET_FP16 ? 14 : 12) : 0)) \ > ~~~~~~~~~~~~~^~~~~~~~~~ > $SRC/gcc/config/arm/arm-c.c:133:7: note: in expansion of macro > 'TARGET_ARM_FP' > if (TARGET_ARM_FP) > > > The full definition of TARGET_ARM_FP is: > #define TARGET_ARM_FP \ > (!TARGET_SOFT_FLOAT ? (TARGET_VFP_SINGLE ? 4 \ > : (TARGET_VFP_DOUBLE ? (TARGET_FP16 ? 14 : 12) : 0)) \ > : 0) > > We want it set to 0 when there's no FP but when FP is available we set > it to a bitmask > to suggest the level that is available. That seems like a legitimate use > to me. >
Ok, I see, sorry for that. I think I will have to suppress the warning if the conditional is in a macro somehow. Can you work around that for a few days? Bernd.