public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] nios2-linux: add missing cpp specs
@ 2015-05-27 16:05 Mike Frysinger
  2015-05-29 15:41 ` Sandra Loosemore
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger @ 2015-05-27 16:05 UTC (permalink / raw)
  To: gcc-patches; +Cc: cltang, sandra

Define CPP_SPEC for nios2 linux targets so that -posix & -pthread work
like on all other linux targets.

2015-05-27  Mike Frysinger  <vapier@gentoo.org>

	* config/nios2/linux.h (CPP_SPEC): Define.
---
 gcc/config/nios2/linux.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h
index 41cad94..f43f655 100644
--- a/gcc/config/nios2/linux.h
+++ b/gcc/config/nios2/linux.h
@@ -26,6 +26,9 @@
     }                                           \
   while (0)
 
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
 
 #undef LINK_SPEC
-- 
2.4.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-30 16:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 16:05 [PATCH] nios2-linux: add missing cpp specs Mike Frysinger
2015-05-29 15:41 ` Sandra Loosemore
2015-05-29 18:42   ` Mike Frysinger
2015-05-29 19:32     ` Sandra Loosemore
2015-05-30  4:50       ` Mike Frysinger
2015-05-30 16:09         ` Sandra Loosemore
2015-05-30 19:13           ` Mike Frysinger

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).