* gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE. * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE. * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE. * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero. c-family/ * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform INT_MIN / -1 sanitization only for integer types. c/ * c-typeck.c (build_binary_op): Call ubsan_instrument_division also when SANITIZE_FLOAT_DIVIDE is on. cp/ * typeck.c (cp_build_binary_op): Call ubsan_instrument_division even when SANITIZE_FLOAT_DIVIDE is on. Set doing_div_or_mod even for non-integer types. testsuite/ * c-c++-common/ubsan/div-by-zero-5.c: Fix formatting. * c-c++-common/ubsan/float-div-by-zero-1.c: New test. From-SVN: r209927
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| attrib-1.c | Loading commit data... | |
| const-char-1.c | Loading commit data... | |
| const-expr-1.c | Loading commit data... | |
| div-by-zero-1.c | Loading commit data... | |
| div-by-zero-2.c | Loading commit data... | |
| div-by-zero-3.c | Loading commit data... | |
| div-by-zero-4.c | Loading commit data... | |
| div-by-zero-5.c | Loading commit data... | |
| div-by-zero-6.c | Loading commit data... | |
| div-by-zero-7.c | Loading commit data... | |
| float-div-by-zero-1.c | Loading commit data... | |
| load-bool-enum.c | Loading commit data... | |
| null-1.c | Loading commit data... | |
| null-10.c | Loading commit data... | |
| null-11.c | Loading commit data... | |
| null-2.c | Loading commit data... | |
| null-3.c | Loading commit data... | |
| null-4.c | Loading commit data... | |
| null-5.c | Loading commit data... | |
| null-6.c | Loading commit data... | |
| null-7.c | Loading commit data... | |
| null-8.c | Loading commit data... | |
| null-9.c | Loading commit data... | |
| overflow-1.c | Loading commit data... | |
| overflow-2.c | Loading commit data... | |
| overflow-add-1.c | Loading commit data... | |
| overflow-add-2.c | Loading commit data... | |
| overflow-add-3.c | Loading commit data... | |
| overflow-add-4.c | Loading commit data... | |
| overflow-int128.c | Loading commit data... | |
| overflow-mul-1.c | Loading commit data... | |
| overflow-mul-2.c | Loading commit data... | |
| overflow-mul-3.c | Loading commit data... | |
| overflow-mul-4.c | Loading commit data... | |
| overflow-negate-1.c | Loading commit data... | |
| overflow-negate-2.c | Loading commit data... | |
| overflow-sub-1.c | Loading commit data... | |
| overflow-sub-2.c | Loading commit data... | |
| pr58443-1.c | Loading commit data... | |
| pr58443-2.c | Loading commit data... | |
| pr58443-3.c | Loading commit data... | |
| pr59333.c | Loading commit data... | |
| pr59397.c | Loading commit data... | |
| pr59503.c | Loading commit data... | |
| pr59667.c | Loading commit data... | |
| pr60613-1.c | Loading commit data... | |
| pr60613-2.c | Loading commit data... | |
| pr60636.c | Loading commit data... | |
| save-expr-1.c | Loading commit data... | |
| save-expr-2.c | Loading commit data... | |
| save-expr-3.c | Loading commit data... | |
| save-expr-4.c | Loading commit data... | |
| shift-1.c | Loading commit data... | |
| shift-2.c | Loading commit data... | |
| shift-3.c | Loading commit data... | |
| shift-4.c | Loading commit data... | |
| shift-5.c | Loading commit data... | |
| shift-6.c | Loading commit data... | |
| typedef-1.c | Loading commit data... | |
| undefined-1.c | Loading commit data... | |
| unreachable-1.c | Loading commit data... | |
| vla-1.c | Loading commit data... | |
| vla-2.c | Loading commit data... | |
| vla-3.c | Loading commit data... | |
| vla-4.c | Loading commit data... |