From: Julian Seward Date: Sat, 5 May 2018 08:00:46 +0000 (+0200) Subject: Add extra __ubsan failure functions needed to un-break ubsanified builds with gcc 8. X-Git-Tag: VALGRIND_3_14_0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe28f100d7d01953eca21d27824843fad4e9ff24;p=thirdparty%2Fvalgrind.git Add extra __ubsan failure functions needed to un-break ubsanified builds with gcc 8. --- diff --git a/coregrind/m_compiler.c b/coregrind/m_compiler.c index 8d0dc67333..bf114ad490 100644 --- a/coregrind/m_compiler.c +++ b/coregrind/m_compiler.c @@ -232,6 +232,13 @@ void __ubsan_handle_type_mismatch ( void ) vg_assert(0); } +void __ubsan_handle_type_mismatch_v1 ( void ); +void __ubsan_handle_type_mismatch_v1 ( void ) +{ + VG_(debugLog)(0, "main:ubsan", "In %s", __func__); + vg_assert(0); +} + void __ubsan_handle_mul_overflow ( void ); void __ubsan_handle_mul_overflow ( void ) { @@ -267,6 +274,13 @@ void __ubsan_handle_negate_overflow ( void ) vg_assert(0); } +void __ubsan_handle_pointer_overflow ( void ); +void __ubsan_handle_pointer_overflow ( void ) +{ + VG_(debugLog)(0, "main:ubsan", "In %s", __func__); + vg_assert(0); +} + void __ubsan_handle_out_of_bounds ( void ); void __ubsan_handle_out_of_bounds ( void ) { @@ -295,6 +309,13 @@ void __ubsan_handle_nonnull_arg ( void ) vg_assert(0); } +void __ubsan_handle_invalid_builtin ( void ); +void __ubsan_handle_invalid_builtin ( void ) +{ + VG_(debugLog)(0, "main:ubsan", "In %s", __func__); + vg_assert(0); +} + /*--------------------------------------------------------------------*/ /*--- end ---*/ /*--------------------------------------------------------------------*/