linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cgcc: teach cgcc about GNU/kFreeBSD
@ 2017-09-14 20:03 Uwe Kleine-König
  2017-09-14 20:17 ` Uwe Kleine-König
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2017-09-14 20:03 UTC (permalink / raw)
  To: linux-sparse

---
 cgcc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cgcc b/cgcc
index a8d7b4f217fe..0ab54f943578 100755
--- a/cgcc
+++ b/cgcc
@@ -235,6 +235,9 @@ sub add_specs {
     } elsif ($spec eq 'linux') {
 	return &add_specs ('unix') .
 	    ' -D__linux__=1 -D__linux=1 -Dlinux=linux';
+    } elsif ($spec eq 'gnu/kfreebsd') {
+	return &add_specs ('unix') .
+	    ' -D__FreeBSD_kernel__=1'
     } elsif ($spec eq 'openbsd') {
 	return &add_specs ('unix') .
 	    ' -D__OpenBSD__=1';
-- 
2.14.1


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

end of thread, other threads:[~2017-09-20 15:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-14 20:03 [PATCH] cgcc: teach cgcc about GNU/kFreeBSD Uwe Kleine-König
2017-09-14 20:17 ` Uwe Kleine-König
2017-09-15  5:09   ` Luc Van Oostenryck
2017-09-15  4:50 ` Luc Van Oostenryck
2017-09-15 16:56 ` Chris Li
2017-09-16  7:50   ` Luc Van Oostenryck
2017-09-16 13:57     ` Uwe Kleine-König
2017-09-19 12:25 ` Chris Li
2017-09-19 14:41   ` Uwe Kleine-König
2017-09-19 15:15     ` Chris Li
2017-09-19 17:33       ` Uwe Kleine-König
2017-09-20  4:45         ` Chris Li
2017-09-20 15:10 ` [PATCH v2] " Uwe Kleine-König

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 NNTP newsgroup(s).