Module Name:    src
Committed By:   christos
Date:           Sat Dec 17 03:43:38 UTC 2016

Modified Files:
        src/tests/kernel: t_ptrace_wait.h

Log Message:
fix clang build.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/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/kernel/t_ptrace_wait.h
diff -u src/tests/kernel/t_ptrace_wait.h:1.3 src/tests/kernel/t_ptrace_wait.h:1.4
--- src/tests/kernel/t_ptrace_wait.h:1.3	Thu Dec 15 03:57:24 2016
+++ src/tests/kernel/t_ptrace_wait.h	Fri Dec 16 22:43:38 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_wait.h,v 1.3 2016/12/15 08:57:24 kamil Exp $	*/
+/*	$NetBSD: t_ptrace_wait.h,v 1.4 2016/12/17 03:43:38 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -380,7 +380,12 @@ dsum(unsigned n)
  *
  * Tested with GCC 5.4 on NetBSD 7.99.47 amd64
  */
-static int __used __attribute__((optimize("O0")))
+static int __used
+#ifdef __clang__
+__attribute__((__optnone__))
+#else
+__attribute__((__optimize__("O0")))
+#endif
 check_happy(unsigned n)
 {
 	for (;;) {

Reply via email to