Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys adjust r1.19; add clang equivalent of gcc...



details:   https://anonhg.NetBSD.org/src/rev/b204b9aaff56
branches:  trunk
changeset: 969268:b204b9aaff56
user:      tnn <tnn%NetBSD.org@localhost>
date:      Thu Feb 13 18:31:54 2020 +0000

description:
adjust r1.19; add clang equivalent of gcc specific attribute

diffstat:

 tests/lib/libc/sys/t_ptrace_x86_wait.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r c96ea80f5c15 -r b204b9aaff56 tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h    Thu Feb 13 18:06:26 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h    Thu Feb 13 18:31:54 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_x86_wait.h,v 1.21 2020/02/13 15:27:25 mgorny Exp $    */
+/*     $NetBSD: t_ptrace_x86_wait.h,v 1.22 2020/02/13 18:31:54 tnn Exp $       */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -1971,7 +1971,12 @@
 
 #define X86_CVE_2018_8897_PAGE 0x5000 /* page addressable by 32-bit registers */
 
-static __attribute__((__optimize__("O0"))) void
+static void
+#ifdef __clang__
+__attribute__((optnone))
+#else
+__attribute__((__optimize__("O0")))
+#endif
 x86_cve_2018_8897_trigger(void)
 {
        /*



Home | Main Index | Thread Index | Old Index