Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external fake mknative, mostly enough to build real for mkna...



details:   https://anonhg.NetBSD.org/src/rev/902c25c1e79e
branches:  trunk
changeset: 450541:902c25c1e79e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Apr 17 08:56:10 2019 +0000

description:
fake mknative, mostly enough to build real for mknative.

diffstat:

 external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk               |     2 +-
 external/gpl3/gcc/lib/libgomp/arch/riscv32/config.h             |    70 +-
 external/gpl3/gcc/lib/libgomp/arch/riscv32/omp.h                |   100 +-
 external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h     |   444 ++-
 external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/cxxabi_tweaks.h |    10 +-
 external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/defs.mk         |    32 +-
 external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/gstdint.h       |     6 +-
 external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/symver-config.h |  1319 ++++++++++
 external/gpl3/gcc/usr.bin/gcc/arch/riscv32/auto-host.h          |     2 +-
 external/gpl3/gcc/usr.bin/gcc/arch/riscv32/tm.h                 |     3 -
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/Makefile.inc         |   194 +-
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/gmp.h                |   246 +-
 12 files changed, 2202 insertions(+), 226 deletions(-)

diffs (truncated from 3340 to 300 lines):

diff -r a3cfa94917c9 -r 902c25c1e79e external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk
--- a/external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk Wed Apr 17 07:55:33 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk Wed Apr 17 08:56:10 2019 +0000
@@ -4,7 +4,7 @@
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
 G_INTERNAL_CFLAGS=-g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  
-isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc 
-I${GNUHOSTDIST}/libgcc/../include  -DHAVE_CC_TLS 
-G_LIB2ADD= enable-execute-stack.c
+G_LIB2ADD= ${GNUHOSTDIST}/libgcc/soft-fp/addtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/divtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/eqtf2.c ${GNUHOSTDIST}/libgcc/soft-fp/getf2.c 
${GNUHOSTDIST}/libgcc/soft-fp/letf2.c ${GNUHOSTDIST}/libgcc/soft-fp/multf3.c ${GNUHOSTDIST}/libgcc/soft-fp/negtf2.c ${GNUHOSTDIST}/libgcc/soft-fp/subtf3.c ${GNUHOSTDIST}/libgcc/soft-fp/unordtf2.c 
${GNUHOSTDIST}/libgcc/soft-fp/fixtfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/fixunstfsi.c ${GNUHOSTDIST}/libgcc/soft-fp/floatsitf.c ${GNUHOSTDIST}/libgcc/soft-fp/floatunsitf.c 
${GNUHOSTDIST}/libgcc/soft-fp/extendsftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/extenddftf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfsf2.c ${GNUHOSTDIST}/libgcc/soft-fp/trunctfdf2.c enable-execute-stack.c
 G_LIB2ADDEH=${GNUHOSTDIST}/libgcc/unwind-dw2.c ${GNUHOSTDIST}/libgcc/unwind-dw2-fde-dip.c ${GNUHOSTDIST}/libgcc/unwind-sjlj.c ${GNUHOSTDIST}/libgcc/unwind-c.c ${GNUHOSTDIST}/libgcc/emutls.c
 G_LIB2ADD_ST=
 G_LIB1ASMFUNCS=
diff -r a3cfa94917c9 -r 902c25c1e79e external/gpl3/gcc/lib/libgomp/arch/riscv32/config.h
--- a/external/gpl3/gcc/lib/libgomp/arch/riscv32/config.h       Wed Apr 17 07:55:33 2019 +0000
+++ b/external/gpl3/gcc/lib/libgomp/arch/riscv32/config.h       Wed Apr 17 08:56:10 2019 +0000
@@ -1,6 +1,6 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.100 2019/02/09 03:57:00 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* config.h.  Generated from config.h.in by configure.  */
 /* config.h.in.  Generated from configure.ac by autoheader.  */
@@ -29,18 +29,39 @@
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #define HAVE_DLFCN_H 1
 
+/* Define to 1 if you have the `getegid' function. */
+#define HAVE_GETEGID 1
+
+/* Define to 1 if you have the `geteuid' function. */
+#define HAVE_GETEUID 1
+
+/* Define to 1 if you have the `getgid' function. */
+#define HAVE_GETGID 1
+
 /* Define to 1 if you have the `getloadavg' function. */
 #define HAVE_GETLOADAVG 1
 
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
 /* Define to 1 if you have the <inttypes.h> header file. */
 #define HAVE_INTTYPES_H 1
 
+/* Define to 1 if you have the `dl' library (-ldl). */
+/* #undef HAVE_LIBDL */
+
 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1
 
 /* Define if pthread_{,attr_}{g,s}etaffinity_np is supported. */
 /* #undef HAVE_PTHREAD_AFFINITY_NP */
 
+/* Define to 1 if you have the <pthread.h> header file. */
+#define HAVE_PTHREAD_H 1
+
+/* Define to 1 if you have the `secure_getenv' function. */
+/* #undef HAVE_SECURE_GETENV */
+
 /* Define to 1 if you have the <semaphore.h> header file. */
 #define HAVE_SEMAPHORE_H 1
 
@@ -59,9 +80,12 @@
 /* Define to 1 if you have the `strtoull' function. */
 #define HAVE_STRTOULL 1
 
+/* Define to 1 if the system has the type `struct _Mutex_Control'. */
+/* #undef HAVE_STRUCT__MUTEX_CONTROL */
+
 /* Define to 1 if the target runtime linker supports binding the same symbol
    to different versions. */
-/* #undef HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT */
+#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1
 
 /* Define to 1 if the target supports __sync_*_compare_and_swap */
 #define HAVE_SYNC_BUILTINS 1
@@ -72,6 +96,9 @@
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #define HAVE_SYS_STAT_H 1
 
+/* Define to 1 if you have the <sys/sysctl.h> header file. */
+#define HAVE_SYS_SYSCTL_H 1
+
 /* Define to 1 if you have the <sys/time.h> header file. */
 #define HAVE_SYS_TIME_H 1
 
@@ -84,13 +111,28 @@
 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1
 
+/* Define to 1 if you have the `__secure_getenv' function. */
+/* #undef HAVE___SECURE_GETENV */
+
+/* Define path to HSA runtime. */
+#define HSA_RUNTIME_LIB ""
+
 /* Define to 1 if GNU symbol versioning is used for libgomp. */
-/* #undef LIBGOMP_GNU_SYMBOL_VERSIONING */
+#define LIBGOMP_GNU_SYMBOL_VERSIONING 1
+
+/* Define to 1 if building libgomp for an accelerator-only target. */
+/* #undef LIBGOMP_OFFLOADED_ONLY */
+
+/* Define to 1 if libgomp should use POSIX threads. */
+#define LIBGOMP_USE_PTHREADS 1
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
    */
 #define LT_OBJDIR ".libs/"
 
+/* Define to offload targets, separated by commas. */
+#define OFFLOAD_TARGETS ""
+
 /* Name of package */
 #define PACKAGE "libgomp"
 
@@ -98,10 +140,10 @@
 #define PACKAGE_BUGREPORT ""
 
 /* Define to the full name of this package. */
-#define PACKAGE_NAME "GNU OpenMP Runtime Library"
+#define PACKAGE_NAME "GNU Offloading and Multi Processing Runtime Library"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
+#define PACKAGE_STRING "GNU Offloading and Multi Processing Runtime Library 1.0"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libgomp"
@@ -112,6 +154,19 @@
 /* Define to the version of this package. */
 #define PACKAGE_VERSION "1.0"
 
+/* Define to 1 if the HSA plugin is built, 0 if not. */
+#define PLUGIN_HSA 0
+
+/* Define to 1 if the NVIDIA plugin is built, 0 if not. */
+#define PLUGIN_NVPTX 0
+
+/* Define to 1 if the NVIDIA plugin should dlopen libcuda.so.1, 0 if it should
+   be linked against it. */
+#define PLUGIN_NVPTX_DYNAMIC 0
+
+/* Define if all infrastructure, needed for plugins, is supported. */
+/* #undef PLUGIN_SUPPORT */
+
 /* The size of `char', as computed by sizeof. */
 /* #undef SIZEOF_CHAR */
 
@@ -136,5 +191,8 @@
 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #define TIME_WITH_SYS_TIME 1
 
+/* Define to 1 if the target use emutls for thread-local storage. */
+/* #undef USE_EMUTLS */
+
 /* Version number of package */
 #define VERSION "1.0"
diff -r a3cfa94917c9 -r 902c25c1e79e external/gpl3/gcc/lib/libgomp/arch/riscv32/omp.h
--- a/external/gpl3/gcc/lib/libgomp/arch/riscv32/omp.h  Wed Apr 17 07:55:33 2019 +0000
+++ b/external/gpl3/gcc/lib/libgomp/arch/riscv32/omp.h  Wed Apr 17 08:56:10 2019 +0000
@@ -1,11 +1,12 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.94 2018/09/04 22:57:25 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2017 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth%redhat.com@localhost>.
 
-   This file is part of the GNU OpenMP Library (libgomp).
+   This file is part of the GNU Offloading and Multi Processing Library
+   (libgomp).
 
    Libgomp is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
@@ -26,8 +27,8 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef OMP_H
-#define OMP_H 1
+#ifndef _OMP_H
+#define _OMP_H 1
 
 #ifndef _LIBGOMP_OMP_LOCK_DEFINED
 #define _LIBGOMP_OMP_LOCK_DEFINED 1
@@ -37,14 +38,14 @@
 
 typedef struct
 {
-  unsigned char _x[4] 
-    __attribute__((__aligned__(4)));
+  unsigned char _x[8] 
+    __attribute__((__aligned__(8)));
 } omp_lock_t;
 
 typedef struct
 {
-  unsigned char _x[12] 
-    __attribute__((__aligned__(4)));
+  unsigned char _x[24] 
+    __attribute__((__aligned__(8)));
 } omp_nest_lock_t;
 #endif
 
@@ -56,6 +57,24 @@
   omp_sched_auto = 4
 } omp_sched_t;
 
+typedef enum omp_proc_bind_t
+{
+  omp_proc_bind_false = 0,
+  omp_proc_bind_true = 1,
+  omp_proc_bind_master = 2,
+  omp_proc_bind_close = 3,
+  omp_proc_bind_spread = 4
+} omp_proc_bind_t;
+
+typedef enum omp_lock_hint_t
+{
+  omp_lock_hint_none = 0,
+  omp_lock_hint_uncontended = 1,
+  omp_lock_hint_contended = 2,
+  omp_lock_hint_nonspeculative = 4,
+  omp_lock_hint_speculative = 8,
+} omp_lock_hint_t;
+
 #ifdef __cplusplus
 extern "C" {
 # define __GOMP_NOTHROW throw ()
@@ -78,12 +97,16 @@
 extern int omp_get_nested (void) __GOMP_NOTHROW;
 
 extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW;
+extern void omp_init_lock_with_hint (omp_lock_t *, omp_lock_hint_t)
+  __GOMP_NOTHROW;
 extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW;
 extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW;
 extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW;
 extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW;
 
 extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
+extern void omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_lock_hint_t)
+  __GOMP_NOTHROW;
 extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
 extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
 extern void omp_unset_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
@@ -92,20 +115,55 @@
 extern double omp_get_wtime (void) __GOMP_NOTHROW;
 extern double omp_get_wtick (void) __GOMP_NOTHROW;
 
-void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW;
-void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW;
-int omp_get_thread_limit (void) __GOMP_NOTHROW;
-void omp_set_max_active_levels (int) __GOMP_NOTHROW;
-int omp_get_max_active_levels (void) __GOMP_NOTHROW;
-int omp_get_level (void) __GOMP_NOTHROW;
-int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW;
-int omp_get_team_size (int) __GOMP_NOTHROW;
-int omp_get_active_level (void) __GOMP_NOTHROW;
+extern void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW;
+extern void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW;
+extern int omp_get_thread_limit (void) __GOMP_NOTHROW;
+extern void omp_set_max_active_levels (int) __GOMP_NOTHROW;
+extern int omp_get_max_active_levels (void) __GOMP_NOTHROW;
+extern int omp_get_level (void) __GOMP_NOTHROW;
+extern int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW;
+extern int omp_get_team_size (int) __GOMP_NOTHROW;
+extern int omp_get_active_level (void) __GOMP_NOTHROW;
+
+extern int omp_in_final (void) __GOMP_NOTHROW;
+
+extern int omp_get_cancellation (void) __GOMP_NOTHROW;
+extern omp_proc_bind_t omp_get_proc_bind (void) __GOMP_NOTHROW;
+extern int omp_get_num_places (void) __GOMP_NOTHROW;
+extern int omp_get_place_num_procs (int) __GOMP_NOTHROW;
+extern void omp_get_place_proc_ids (int, int *) __GOMP_NOTHROW;
+extern int omp_get_place_num (void) __GOMP_NOTHROW;
+extern int omp_get_partition_num_places (void) __GOMP_NOTHROW;
+extern void omp_get_partition_place_nums (int *) __GOMP_NOTHROW;
 
-int omp_in_final (void) __GOMP_NOTHROW;
+extern void omp_set_default_device (int) __GOMP_NOTHROW;
+extern int omp_get_default_device (void) __GOMP_NOTHROW;
+extern int omp_get_num_devices (void) __GOMP_NOTHROW;
+extern int omp_get_num_teams (void) __GOMP_NOTHROW;
+extern int omp_get_team_num (void) __GOMP_NOTHROW;
+
+extern int omp_is_initial_device (void) __GOMP_NOTHROW;
+extern int omp_get_initial_device (void) __GOMP_NOTHROW;
+extern int omp_get_max_task_priority (void) __GOMP_NOTHROW;
+
+extern void *omp_target_alloc (__SIZE_TYPE__, int) __GOMP_NOTHROW;
+extern void omp_target_free (void *, int) __GOMP_NOTHROW;
+extern int omp_target_is_present (void *, int) __GOMP_NOTHROW;



Home | Main Index | Thread Index | Old Index