Lines Matching refs:loc
47 static bool was_already_reported(struct source_location *loc) in was_already_reported() argument
49 uint32_t column = loc->column; in was_already_reported()
54 return !atomic_cas_u32(&loc->column, &column, in was_already_reported()
65 struct source_location loc; member
72 struct source_location loc; member
77 struct source_location loc; member
83 struct source_location loc; member
89 struct source_location loc; member
93 struct source_location loc; member
98 struct source_location loc; member
103 struct source_location loc; member
107 struct source_location loc; member
140 static void ubsan_handle_error(const char *func, struct source_location *loc, in ubsan_handle_error() argument
146 if (was_already_reported(loc)) in ubsan_handle_error()
153 f, loc->file_name, loc->line, loc->column & ~UBSAN_LOC_REPORTED); in ubsan_handle_error()
162 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_type_mismatch()
169 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_type_mismatch_v1()
177 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_add_overflow()
185 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_sub_overflow()
193 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_mul_overflow()
200 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_negate_overflow()
208 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_divrem_overflow()
216 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_pointer_overflow()
224 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_shift_out_of_bounds()
231 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_out_of_bounds()
238 ubsan_handle_error(__func__, &data->loc, false); in __ubsan_handle_builtin_unreachable()
246 ubsan_handle_error(__func__, &data->loc, false); in __ubsan_handle_missing_return()
254 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_vla_bound_not_positive()
261 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_load_invalid_value()
272 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_nonnull_arg()
279 ubsan_handle_error(__func__, &data->loc, should_panic); in __ubsan_handle_invalid_builtin()