Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc partial mknative-gcc for riscv32/64.
details: https://anonhg.NetBSD.org/src/rev/5366fdbdea11
branches: trunk
changeset: 997212:5366fdbdea11
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Feb 27 08:22:43 2019 +0000
description:
partial mknative-gcc for riscv32/64.
diffstat:
external/gpl3/gcc/lib/libgcc/arch/riscv32/auto-target.h | 43 +-
external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk | 10 +-
external/gpl3/gcc/lib/libgcc/arch/riscv32/gthr-defs.mk | 9 +
external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk | 4 +-
external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/defs.mk | 5 +-
external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/gcov-iov.h | 8 +-
external/gpl3/gcc/usr.bin/common-target/arch/riscv32.mk | 5 +
external/gpl3/gcc/usr.bin/common-target/arch/riscv64.mk | 5 +
external/gpl3/gcc/usr.bin/gcc/arch/riscv32/insn-modes.h | 457 +++++++++++
9 files changed, 517 insertions(+), 29 deletions(-)
diffs (truncated from 653 to 300 lines):
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/arch/riscv32/auto-target.h
--- a/external/gpl3/gcc/lib/libgcc/arch/riscv32/auto-target.h Wed Feb 27 08:21:42 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/arch/riscv32/auto-target.h Wed Feb 27 08:22:43 2019 +0000
@@ -1,12 +1,15 @@
/* 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.101 2019/02/23 06:54:45 mrg Exp */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */
/* auto-target.h. Generated from config.in by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define to 1 if the target assembler supports thread-local storage. */
-/* #undef HAVE_CC_TLS */
+#define HAVE_CC_TLS 1
+
+/* Define to 1 if you have the <ftw.h> header file. */
+#define HAVE_FTW_H 1
/* Define if _Unwind_GetIPInfo is available. */
#define HAVE_GETIPINFO 1
@@ -15,34 +18,34 @@
#define HAVE_INIT_PRIORITY 1
/* Define to 1 if you have the <inttypes.h> header file. */
-/* #undef HAVE_INTTYPES_H */
+#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
-/* #undef HAVE_MEMORY_H */
+#define HAVE_MEMORY_H 1
+
+/* Define if the system-provided CRTs are present on Solaris. */
+/* #undef HAVE_SOLARIS_CRTS */
/* Define to 1 if you have the <stdint.h> header file. */
-/* #undef HAVE_STDINT_H */
+#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
-/* #undef HAVE_STDLIB_H */
+#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
-/* #undef HAVE_STRINGS_H */
+#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
-/* #undef HAVE_STRING_H */
+#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
-/* #undef HAVE_SYS_STAT_H */
+#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
-/* #undef HAVE_SYS_TYPES_H */
+#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
-/* #undef HAVE_UNISTD_H */
-
-/* Define if the C compiler is configured for setjmp/longjmp exceptions. */
-/* #undef LIBGCC_SJLJ_EXCEPTIONS */
+#define HAVE_UNISTD_H 1
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
@@ -66,10 +69,16 @@
#define SIZEOF_DOUBLE 8
/* The size of `long double', as computed by sizeof. */
-#define SIZEOF_LONG_DOUBLE 8
+#define SIZEOF_LONG_DOUBLE 16
/* Define to 1 if you have the ANSI C header files. */
-/* #undef STDC_HEADERS */
+#define STDC_HEADERS 1
/* Define to 1 if the target use emutls for thread-local storage. */
/* #undef USE_EMUTLS */
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk
--- a/external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk Wed Feb 27 08:21:42 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/arch/riscv32/defs.mk Wed Feb 27 08:22:43 2019 +0000
@@ -1,21 +1,21 @@
# 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.101 2019/02/23 06:54:45 mrg Exp
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp
#
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_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=
G_LIB1ASMSRC=
-G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
+G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _divmoddi4 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
G_LIB2FUNCS_ST=_eprintf __gcc_bcmp
G_LIB2FUNCS_EXTRA=
-G_LIBGCC2_CFLAGS=-O2 -DIN_GCC -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
+G_LIBGCC2_CFLAGS=-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
G_SHLIB_MKMAP=${GNUHOSTDIST}/libgcc/mkmap-symver.awk
G_SHLIB_MKMAP_OPTS=
G_SHLIB_MAPFILES=libgcc-std.ver
G_SHLIB_NM_FLAGS=-pg
G_NOEXCEPTION_FLAGS=-fno-exceptions -fno-rtti -fasynchronous-unwind-tables
G_EXTRA_HEADERS=${GNUHOSTDIST}/gcc/ginclude/tgmath.h
-G_CONFIG_LINKS=${GNUHOSTDIST}/libgcc/enable-execute-stack-mprotect.c enable-execute-stack.c ${GNUHOSTDIST}/libgcc/unwind-generic.h unwind.h ${GNUHOSTDIST}/libgcc/config/no-unwind.h
md-unwind-support.h ${GNUHOSTDIST}/libgcc/config/no-sfp-machine.h sfp-machine.h ${GNUHOSTDIST}/libgcc/gthr-posix.h gthr-default.h
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/arch/riscv32/gthr-defs.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/lib/libgcc/arch/riscv32/gthr-defs.mk Wed Feb 27 08:22:43 2019 +0000
@@ -0,0 +1,9 @@
+# This file is automatically generated. DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp
+#
+G_enable_execute_stack=enable-execute-stack-mprotect.c
+G_unwind_header=unwind-generic.h
+G_md_unwind_header=no-unwind.h
+G_sfp_machine_header=riscv/sfp-machine.h
+G_thread_header=gthr-posix.h
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk
--- a/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk Wed Feb 27 08:21:42 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/arch/riscv64/gthr-defs.mk Wed Feb 27 08:22:43 2019 +0000
@@ -1,9 +1,9 @@
# This file is automatically generated. DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.95 2019/01/19 17:08:39 mrg Exp
+# Generated from: NetBSD: mknative-gcc,v 1.97 2019/02/01 09:27:23 mrg Exp
# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp
#
G_enable_execute_stack=enable-execute-stack-mprotect.c
G_unwind_header=unwind-generic.h
G_md_unwind_header=no-unwind.h
-G_sfp_machine_header=riscv/sfp-machine.h
+G_sfp_machine_header=no-sfp-machine.h
G_thread_header=gthr-posix.h
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/defs.mk
--- a/external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/defs.mk Wed Feb 27 08:21:42 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/defs.mk Wed Feb 27 08:22:43 2019 +0000
@@ -2,4 +2,7 @@
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
-G_LIBGCOV=_gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta _gcov_fork _gcov_execl _gcov_execlp _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset _gcov_dump
_gcov_interval_profiler _gcov_pow2_profiler _gcov_one_value_profiler _gcov_indirect_call_profiler _gcov_average_profiler _gcov_ior_profiler _gcov_merge_ior
+G_LIBGCOV_MERGE=_gcov_merge_add _gcov_merge_single _gcov_merge_ior _gcov_merge_time_profile _gcov_merge_icall_topn
+G_LIBGCOV_PROFILER=_gcov_interval_profiler _gcov_interval_profiler_atomic _gcov_pow2_profiler _gcov_pow2_profiler_atomic _gcov_one_value_profiler _gcov_one_value_profiler_atomic
_gcov_average_profiler _gcov_average_profiler_atomic _gcov_ior_profiler _gcov_ior_profiler_atomic _gcov_indirect_call_profiler_v2 _gcov_time_profiler _gcov_indirect_call_topn_profiler
+G_LIBGCOV_INTERFACE=_gcov_dump _gcov_flush _gcov_fork _gcov_execl _gcov_execlp _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset
+G_LIBGCOV_DRIVER=_gcov
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/gcov-iov.h
--- a/external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/gcov-iov.h Wed Feb 27 08:21:42 2019 +0000
+++ b/external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/gcov-iov.h Wed Feb 27 08:22:43 2019 +0000
@@ -1,8 +1,8 @@
/* 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.101 2019/02/23 06:54:45 mrg Exp */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */
/* Generated automatically by the program `build/gcov-iov'
- from `4.8.4 (4 8) and (*)'. */
+ from `7.4.0 (7 4) and (*)'. */
-#define GCOV_VERSION ((gcov_unsigned_t)0x3430382a) /* 408* */
+#define GCOV_VERSION ((gcov_unsigned_t)0x4137342a) /* A74* */
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/usr.bin/common-target/arch/riscv32.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/common-target/arch/riscv32.mk Wed Feb 27 08:22:43 2019 +0000
@@ -0,0 +1,5 @@
+# This file is automatically generated. DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.98 2019/02/04 00:55:26 mrg Exp
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp
+#
+G_OBJS-libcommon-target=riscv-common.o prefix.o params.o opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o hash-table.o file-find.o spellcheck.o selftest.o
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/usr.bin/common-target/arch/riscv64.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/common-target/arch/riscv64.mk Wed Feb 27 08:22:43 2019 +0000
@@ -0,0 +1,5 @@
+# This file is automatically generated. DO NOT EDIT!
+# Generated from: NetBSD: mknative-gcc,v 1.98 2019/02/04 00:55:26 mrg Exp
+# Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp
+#
+G_OBJS-libcommon-target=riscv-common.o prefix.o params.o opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o hash-table.o file-find.o spellcheck.o selftest.o
diff -r a1e92cf08af1 -r 5366fdbdea11 external/gpl3/gcc/usr.bin/gcc/arch/riscv32/insn-modes.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/gcc/arch/riscv32/insn-modes.h Wed Feb 27 08:22:43 2019 +0000
@@ -0,0 +1,457 @@
+/* This file is automatically generated. DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */
+
+/* Generated automatically from machmode.def and config/riscv/riscv-modes.def
+ by genmodes. */
+
+#ifndef GCC_INSN_MODES_H
+#define GCC_INSN_MODES_H
+
+enum machine_mode
+{
+ VOIDmode, /* machmode.def:172 */
+#define HAVE_VOIDmode
+ BLKmode, /* machmode.def:176 */
+#define HAVE_BLKmode
+ CCmode, /* machmode.def:214 */
+#define HAVE_CCmode
+ BImode, /* machmode.def:179 */
+#define HAVE_BImode
+ QImode, /* machmode.def:187 */
+#define HAVE_QImode
+ HImode, /* machmode.def:188 */
+#define HAVE_HImode
+ SImode, /* machmode.def:189 */
+#define HAVE_SImode
+ DImode, /* machmode.def:190 */
+#define HAVE_DImode
+ TImode, /* machmode.def:191 */
+#define HAVE_TImode
+ QQmode, /* machmode.def:217 */
+#define HAVE_QQmode
+ HQmode, /* machmode.def:218 */
+#define HAVE_HQmode
+ SQmode, /* machmode.def:219 */
+#define HAVE_SQmode
+ DQmode, /* machmode.def:220 */
+#define HAVE_DQmode
+ TQmode, /* machmode.def:221 */
+#define HAVE_TQmode
+ UQQmode, /* machmode.def:223 */
+#define HAVE_UQQmode
+ UHQmode, /* machmode.def:224 */
+#define HAVE_UHQmode
+ USQmode, /* machmode.def:225 */
+#define HAVE_USQmode
+ UDQmode, /* machmode.def:226 */
+#define HAVE_UDQmode
+ UTQmode, /* machmode.def:227 */
+#define HAVE_UTQmode
+ HAmode, /* machmode.def:229 */
+#define HAVE_HAmode
+ SAmode, /* machmode.def:230 */
+#define HAVE_SAmode
+ DAmode, /* machmode.def:231 */
+#define HAVE_DAmode
+ TAmode, /* machmode.def:232 */
+#define HAVE_TAmode
+ UHAmode, /* machmode.def:234 */
+#define HAVE_UHAmode
+ USAmode, /* machmode.def:235 */
+#define HAVE_USAmode
+ UDAmode, /* machmode.def:236 */
+#define HAVE_UDAmode
+ UTAmode, /* machmode.def:237 */
+#define HAVE_UTAmode
+ SFmode, /* machmode.def:209 */
+#define HAVE_SFmode
+ DFmode, /* machmode.def:210 */
+#define HAVE_DFmode
+ TFmode, /* config/riscv/riscv-modes.def:22 */
+#define HAVE_TFmode
+ SDmode, /* machmode.def:250 */
+#define HAVE_SDmode
+ DDmode, /* machmode.def:251 */
+#define HAVE_DDmode
+ TDmode, /* machmode.def:252 */
+#define HAVE_TDmode
+ CQImode, /* machmode.def:245 */
+#define HAVE_CQImode
+ CHImode, /* machmode.def:245 */
+#define HAVE_CHImode
+ CSImode, /* machmode.def:245 */
+#define HAVE_CSImode
+ CDImode, /* machmode.def:245 */
+#define HAVE_CDImode
+ CTImode, /* machmode.def:245 */
+#define HAVE_CTImode
+ SCmode, /* machmode.def:247 */
+#define HAVE_SCmode
+ DCmode, /* machmode.def:247 */
+#define HAVE_DCmode
+ TCmode, /* machmode.def:247 */
+#define HAVE_TCmode
+ MAX_MACHINE_MODE,
+
+ MIN_MODE_RANDOM = VOIDmode,
+ MAX_MODE_RANDOM = BLKmode,
+
+ MIN_MODE_CC = CCmode,
+ MAX_MODE_CC = CCmode,
+
+ MIN_MODE_INT = QImode,
+ MAX_MODE_INT = TImode,
Home |
Main Index |
Thread Index |
Old Index