]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add extra __ubsan failure functions needed to un-break ubsanified builds with gcc 8.
authorJulian Seward <jseward@acm.org>
Sat, 5 May 2018 08:00:46 +0000 (10:00 +0200)
committerJulian Seward <jseward@acm.org>
Sat, 5 May 2018 08:00:46 +0000 (10:00 +0200)
coregrind/m_compiler.c

index 8d0dc67333f4fc8441dd9645e04ece1d597de8dd..bf114ad4902013a425affd72a7e4bef8fde99a47 100644 (file)
@@ -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                                                          ---*/
 /*--------------------------------------------------------------------*/