Re: [PATCH] c-family: Fix up -W*conversion on bitwise &/|/^ [PR101537]

2022-01-11 Thread Jason Merrill via Gcc-patches
On 1/4/22 04:32, Jakub Jelinek wrote: Hi! The following testcases emit a bogus -Wconversion warning. This is because conversion_warning function doesn't handle BIT_*_EXPR (only unsafe_conversion_p that is called during the default: case, and that one doesn't handle SAVE_EXPRs added because the

[PATCH] c-family: Fix up -W*conversion on bitwise &/|/^ [PR101537]

2022-01-04 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcases emit a bogus -Wconversion warning. This is because conversion_warning function doesn't handle BIT_*_EXPR (only unsafe_conversion_p that is called during the default: case, and that one doesn't handle SAVE_EXPRs added because the unsigned char & or | operands promoted t