Author: br
Date: Fri Aug  3 12:47:54 2018
New Revision: 337238
URL: https://svnweb.freebsd.org/changeset/base/337238

Log:
  Replace __riscv__ with __riscv.
  
  __riscv__ is not pre-defined anymore by latest version of GNU compiler.
  
  Sponsored by: DARPA, AFRL

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c       Fri Aug  3 
12:16:02 2018        (r337237)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c       Fri Aug  3 
12:47:54 2018        (r337238)
@@ -54,7 +54,7 @@ run(int n, ...)
 #ifdef __FreeBSD__
 #if defined(__amd64__) || defined(__sparc64__)
        for (i = 0; i < 5; i++) {
-#elif defined(__aarch64__) || defined(__riscv__)
+#elif defined(__aarch64__) || defined(__riscv)
        for (i = 0; i < 7; i++) {
 #else
        for (i = 0; i < 9; i++) {
@@ -126,7 +126,7 @@ ATF_TC_BODY(setcontext_link, tc)
                 */
                makecontext(&uc[i], (void *)run, 6, i,
                        0, 1, 2, 3, 4);
-#elif defined(__aarch64__) || defined(__riscv__)
+#elif defined(__aarch64__) || defined(__riscv)
                /*
                 * FreeBSD/arm64 and FreeBSD/riscv64 only permit up to
                 * 8 arguments.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to