diff options
author | Andreas Schwab <schwab@suse.de> | 2018-02-13 11:21:01 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2018-02-13 11:21:01 +0000 |
commit | 9bc5ecf3bcb25abbf868d52e7db076248e0ef174 (patch) | |
tree | 23f420dfbfbf3411f3bcc3fe65f4075653a2d289 /gcc/config/riscv | |
parent | d74641bdd752306ad41b4cd3b2f747ec046cb391 (diff) | |
download | gcc-9bc5ecf3bcb25abbf868d52e7db076248e0ef174.zip gcc-9bc5ecf3bcb25abbf868d52e7db076248e0ef174.tar.gz gcc-9bc5ecf3bcb25abbf868d52e7db076248e0ef174.tar.bz2 |
RISC-V: define _REENTRANT with -pthread
This is expected by the AX_PTHREAD autoconf macro from
<http://www.gnu.org/software/autoconf-archive/ax_pthread.html>.
* config/riscv/linux.h (CPP_SPEC): Define.
From-SVN: r257621
Diffstat (limited to 'gcc/config/riscv')
-rw-r--r-- | gcc/config/riscv/linux.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h index 1da1b0a..ad03654 100644 --- a/gcc/config/riscv/linux.h +++ b/gcc/config/riscv/linux.h @@ -47,6 +47,8 @@ along with GCC; see the file COPYING3. If not see #define ICACHE_FLUSH_FUNC "__riscv_flush_icache" +#define CPP_SPEC "%{pthread:-D_REENTRANT}" + #define LINK_SPEC "\ -melf" XLEN_SPEC "lriscv \ %{shared} \ |