Re: [PATCH RFA] ubsan: -Wreturn-type and ubsan trap-on-error

2022-06-13 Thread Jakub Jelinek via Gcc-patches
On Mon, Jun 13, 2022 at 03:38:23PM -0400, Jason Merrill via Gcc-patches wrote: > I noticed that -fsanitize=undefined -fsanitize-undefined-trap-on-error was > omitting the usual -Wreturn-type warning for control flowing off the end of > a function. This was because the warning code was looking for

[PATCH RFA] ubsan: -Wreturn-type and ubsan trap-on-error

2022-06-13 Thread Jason Merrill via Gcc-patches
I noticed that -fsanitize=undefined -fsanitize-undefined-trap-on-error was omitting the usual -Wreturn-type warning for control flowing off the end of a function. This was because the warning code was looking for calls either to __builtin_unreachable or the UBSan function, but these flags produce