* [PATCH] RISC-V: define _REENTRANT with -pthread
@ 2018-02-12 11:15 Andreas Schwab
2018-02-12 23:00 ` Jim Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2018-02-12 11:15 UTC (permalink / raw)
To: gcc-patches
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.
diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
index 1da1b0a74e..ad03654e8d 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} \
--
2.16.1
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] RISC-V: define _REENTRANT with -pthread
2018-02-12 11:15 [PATCH] RISC-V: define _REENTRANT with -pthread Andreas Schwab
@ 2018-02-12 23:00 ` Jim Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2018-02-12 23:00 UTC (permalink / raw)
To: Andreas Schwab, gcc-patches
On 02/12/2018 03:15 AM, Andreas Schwab wrote:
> 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.
OK.
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-12 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 11:15 [PATCH] RISC-V: define _REENTRANT with -pthread Andreas Schwab
2018-02-12 23:00 ` Jim Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).