Date: Fri, 3 Aug 2018 12:47:55 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337238 - head/contrib/netbsd-tests/lib/libc/sys Message-ID: <201808031247.w73CltUv023260@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808031247.w73CltUv023260>