Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Use the lint path as workaround for Clang on 32bit PPC for now.
details: https://anonhg.NetBSD.org/src/rev/2b2a473f54b0
branches: trunk
changeset: 331522:2b2a473f54b0
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Aug 13 14:43:48 2014 +0000
description:
Use the lint path as workaround for Clang on 32bit PPC for now.
Document this hack.
diffstat:
doc/TODO.clang | 8 +++++++-
lib/libc/compat/sys/compat___semctl13.c | 7 +++++--
lib/libc/compat/sys/compat_semctl.c | 7 +++++--
lib/libc/sys/semctl.c | 7 +++++--
4 files changed, 22 insertions(+), 7 deletions(-)
diffs (102 lines):
diff -r 94067aba4902 -r 2b2a473f54b0 doc/TODO.clang
--- a/doc/TODO.clang Wed Aug 13 14:41:45 2014 +0000
+++ b/doc/TODO.clang Wed Aug 13 14:43:48 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.clang,v 1.13 2014/08/10 19:12:08 joerg Exp $
+$NetBSD: TODO.clang,v 1.14 2014/08/13 14:43:48 joerg Exp $
Hacks for the clang integration
-------------------------------
@@ -14,3 +14,9 @@
src/external/mit/xorg/lib/pixman uses -fno-integrated-as on ARM for the
macro (ab)use.
+
+Clang does support union arguments for va_arg on 32bit PowerPC, hack
+around to get the files to compiles are in:
+ lib/libc/compat/sys/compat___semctl13.c
+ lib/libc/compat/sys/compat_semctl.c
+ lib/libc/sys/semctl.c
diff -r 94067aba4902 -r 2b2a473f54b0 lib/libc/compat/sys/compat___semctl13.c
--- a/lib/libc/compat/sys/compat___semctl13.c Wed Aug 13 14:41:45 2014 +0000
+++ b/lib/libc/compat/sys/compat___semctl13.c Wed Aug 13 14:43:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */
+/* $NetBSD: compat___semctl13.c,v 1.5 2014/08/13 14:43:48 joerg Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
+__RCSID("$NetBSD: compat___semctl13.c,v 1.5 2014/08/13 14:43:48 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -47,6 +47,9 @@
#include <compat/sys/time.h>
#include <sys/sem.h>
#include <compat/sys/sem.h>
+#if defined(__clang__) && defined(__powerpc__) && !defined(__powerpc64__)
+#define __lint__
+#endif
#ifdef __lint__
#include <string.h>
#endif
diff -r 94067aba4902 -r 2b2a473f54b0 lib/libc/compat/sys/compat_semctl.c
--- a/lib/libc/compat/sys/compat_semctl.c Wed Aug 13 14:41:45 2014 +0000
+++ b/lib/libc/compat/sys/compat_semctl.c Wed Aug 13 14:43:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */
+/* $NetBSD: compat_semctl.c,v 1.5 2014/08/13 14:43:48 joerg Exp $ */
/*
* Copyright (c) 1994, 1995 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
+__RCSID("$NetBSD: compat_semctl.c,v 1.5 2014/08/13 14:43:48 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#define __LIBC12_SOURCE__
@@ -46,6 +46,9 @@
#include <sys/null.h>
#include <compat/sys/sem.h>
#include <stdarg.h>
+#if defined(__clang__) && defined(__powerpc__) && !defined(__powerpc64__)
+#define __lint__
+#endif
#ifdef __lint__
#include <string.h>
#endif
diff -r 94067aba4902 -r 2b2a473f54b0 lib/libc/sys/semctl.c
--- a/lib/libc/sys/semctl.c Wed Aug 13 14:41:45 2014 +0000
+++ b/lib/libc/sys/semctl.c Wed Aug 13 14:43:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $ */
+/* $NetBSD: semctl.c,v 1.17 2014/08/13 14:43:48 joerg Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,13 +30,16 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $");
+__RCSID("$NetBSD: semctl.c,v 1.17 2014/08/13 14:43:48 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <stdarg.h>
+#if defined(__clang__) && defined(__powerpc__) && !defined(__powerpc64__)
+#define __lint__
+#endif
#ifdef __lint__
#include <string.h>
#endif
Home |
Main Index |
Thread Index |
Old Index