Use the lint path as workaround for Clang on 32bit PPC for now.

Document this hack.
This commit is contained in:
joerg 2014-08-13 14:43:48 +00:00
parent edff4300ae
commit 9074b7ff29
4 changed files with 22 additions and 7 deletions

View File

@ -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 @@ g++ otherwise on trivial input.
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

View File

@ -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 @@ __RCSID("$NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
#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

View File

@ -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 @@ __RCSID("$NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $");
#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

View File

@ -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