Module Name: src Committed By: kamil Date: Thu Feb 13 13:34:48 UTC 2020
Modified Files: src/tests/lib/libc/sys: t_ptrace_wait.h Log Message: Disable UBSan reports in trigger_fpe() Division by 0 is on purpose. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/tests/lib/libc/sys/t_ptrace_wait.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/sys/t_ptrace_wait.h diff -u src/tests/lib/libc/sys/t_ptrace_wait.h:1.19 src/tests/lib/libc/sys/t_ptrace_wait.h:1.20 --- src/tests/lib/libc/sys/t_ptrace_wait.h:1.19 Tue Feb 11 00:41:37 2020 +++ src/tests/lib/libc/sys/t_ptrace_wait.h Thu Feb 13 13:34:47 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.h,v 1.19 2020/02/11 00:41:37 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.h,v 1.20 2020/02/13 13:34:47 kamil Exp $ */ /*- * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc. @@ -642,6 +642,11 @@ are_fpu_exceptions_supported(void) return true; } +#if defined(__clang__) +__attribute__((no_sanitize("undefined"))) +#else +__attribute__((no_sanitize_undefined)) +#endif static void __used trigger_fpe(void) {