LLVM Minix changes

- import libcxx
 - reduce targets to the one when compiled as a tools

Change-Id: Iabb8427f80ff8e89463559a28bcb8b4f2bdbc496
This commit is contained in:
2014-07-28 17:05:59 +02:00
parent fe5a129a88
commit 4684ddb6aa
5408 changed files with 694541 additions and 5722 deletions
+1 -3
View File
@@ -305,9 +305,7 @@
#define __static_cast(x,y) (x)y
#endif
/* LSC: Clang/llvm also defines GNUC_PREREQ, but it actually does not
* Support those pragma. Make sure it is not used then. (MINIX) */
#if __GNUC_PREREQ__(4, 0) && !defined(__clang__)
#if __GNUC_PREREQ__(4, 0)
# define __dso_public __attribute__((__visibility__("default")))
# define __dso_hidden __attribute__((__visibility__("hidden")))
# define __BEGIN_PUBLIC_DECLS \
-2
View File
@@ -56,11 +56,9 @@
__asm(".global " _C_LABEL_STRING(#alias) "\n" \
_C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
#if defined(__minix) && !defined(__weak_alias) /* For bitcode support */
#define __weak_alias(alias,sym) \
__asm(".weak " _C_LABEL_STRING(#alias) "\n" \
_C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
#endif
/* Do not use __weak_extern, use __weak_reference instead */
#define __weak_extern(sym) \
+2
View File
@@ -1262,12 +1262,14 @@ typedef void *sysctlfn;
__BEGIN_DECLS
int sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
#if !defined(__minix)
int sysctlbyname(const char *, void *, size_t *, const void *, size_t);
int sysctlgetmibinfo(const char *, int *, u_int *,
char *, size_t *, struct sysctlnode **, int);
int sysctlnametomib(const char *, int *, size_t *);
int proc_compare(const struct kinfo_proc2 *, const struct kinfo_lwp *,
const struct kinfo_proc2 *, const struct kinfo_lwp *);
#endif /* !defined(__minix) */
__END_DECLS
#endif /* !_KERNEL */