From 45ef9dd0277d72eca407e1227050d8c9a4e46086 Mon Sep 17 00:00:00 2001 From: Aleksandr Iashchenko Date: Fri, 27 Dec 2024 14:38:22 +0100 Subject: [PATCH] core: fix error in ubsan_builtin_unreachable naming There is only __ubsan_handle_builtin_unreachable interface in gcc. It was there starting from version 4.9.0. Signed-off-by: Aleksandr Iashchenko Reviewed-by: Jens Wiklander --- core/kernel/ubsan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/kernel/ubsan.c b/core/kernel/ubsan.c index 20936de5c4e..b7955711f4f 100644 --- a/core/kernel/ubsan.c +++ b/core/kernel/ubsan.c @@ -84,7 +84,7 @@ void __ubsan_handle_divrem_overflow(void *data_, void *lhs, void *rhs); void __ubsan_handle_pointer_overflow(void *data_, void *lhs, void *rhs); void __ubsan_handle_shift_out_of_bounds(void *data_, void *lhs, void *rhs); void __ubsan_handle_out_of_bounds(void *data_, void *idx); -void __ubsan_handle_unreachable(struct unreachable_data *data); +void __ubsan_handle_builtin_unreachable(void *data_); void __ubsan_handle_missing_return(void *data_); void __ubsan_handle_vla_bound_not_positive(void *data_, void *bound); void __ubsan_handle_load_invalid_value(void *data_, void *val); @@ -196,11 +196,11 @@ void __ubsan_handle_out_of_bounds(void *data_, void *idx __unused) panic(); } -void __ubsan_handle_unreachable(struct unreachable_data *data) +void __ubsan_handle_builtin_unreachable(void *data_) { + struct unreachable_data *data = data_; print_loc(__func__, &data->loc); - if (ubsan_panic) - panic(); + panic(); } void __noreturn __ubsan_handle_missing_return(void *data_)