On Mon, 22 Dec 2025, Martin Uecker wrote:

> Bootstrapped and regression tested on x86_64.
> 
> 
>     c: Emit -Wzero-as-null-pointer-constant for all integral types [PR117687]
>     
>     Also warn for boolean, _BitInts, and enumeration constants when
>     warning for zero as a null pointer constant.
>     
>             PR c/117687
>     
>     gcc/c/ChangeLog:
>             * c-typeck.cc (parser_build_binary_op,build_conditional_expr,
>             convert_for_assignment): Adapt conditions.
>     
>     testsuite/ChangeLog:
>             * gcc.dg/Wzero-as-null-pointer-constant-2.c: New test.

OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to