https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125424
Bug ID: 125424
Summary: Add -f{no-,}strict-float-cast-overflow
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Clang/LLVM 7 added `-fno-strict-float-cast-overflow` option to control the
"defined"ness of casting from floating types to integer types "overflows".
https://clang.llvm.org/docs/UsersManual.html#cmdoption-f-no-strict-float-cast-overflow
It might be useful to have it as compatibility option and implement it for GCC.