Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src minimal basic support for ia64 and gcc6. i am not sure abou...
details: https://anonhg.NetBSD.org/src/rev/0ae1ff6de7cd
branches: trunk
changeset: 359575:0ae1ff6de7cd
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Feb 16 07:59:05 2018 +0000
description:
minimal basic support for ia64 and gcc6. i am not sure about the
bp part of the GetPcSpBp() port, cherry please look :-)
diffstat:
distrib/sets/lists/comp/md.ia64 | 8 +++++---
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc | 5 +++++
external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 6ea0af657949 -r 0ae1ff6de7cd distrib/sets/lists/comp/md.ia64
--- a/distrib/sets/lists/comp/md.ia64 Fri Feb 16 07:11:50 2018 +0000
+++ b/distrib/sets/lists/comp/md.ia64 Fri Feb 16 07:59:05 2018 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: md.ia64,v 1.3 2017/02/23 02:04:11 scole Exp $
+# $NetBSD: md.ia64,v 1.4 2018/02/16 07:59:05 mrg Exp $
./usr/include/gcc-4.8/ia64intrin.h comp-obsolete obsolete
./usr/include/gcc-4.8/tgmath.h comp-obsolete obsolete
-./usr/include/gcc-5/ia64intrin.h comp-c-include
-./usr/include/gcc-5/tgmath.h comp-c-include
+./usr/include/gcc-5/ia64intrin.h comp-c-include gcc=5
+./usr/include/gcc-5/tgmath.h comp-c-include gcc=5
+./usr/include/gcc-6/ia64intrin.h comp-c-include gcc=6
+./usr/include/gcc-6/tgmath.h comp-c-include gcc=6
./usr/include/ia64 comp-c-include
./usr/include/ia64/_regset.h comp-c-include
./usr/include/ia64/acpi_machdep.h comp-c-include
diff -r 6ea0af657949 -r 0ae1ff6de7cd external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc
--- a/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Fri Feb 16 07:11:50 2018 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Fri Feb 16 07:59:05 2018 +0000
@@ -1269,6 +1269,11 @@
*pc = _UC_MACHINE_PC(ucontext);
*sp = _UC_MACHINE_SP(ucontext);
*bp = ucontext->uc_mcontext.__gregs[_REG_R14];
+#elif defined(__ia64__) && SANITIZER_NETBSD
+ ucontext_t *ucontext = (ucontext_t*)context;
+ *pc = _UC_MACHINE_PC(ucontext);
+ *sp = _UC_MACHINE_SP(ucontext);
+ *bp = ucontext->uc_mcontext.__gregs[1]; /* XXX */
#else
# error "Unsupported arch"
#endif
diff -r 6ea0af657949 -r 0ae1ff6de7cd external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h
--- a/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h Fri Feb 16 07:11:50 2018 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h Fri Feb 16 07:59:05 2018 +0000
@@ -19,7 +19,7 @@
defined(__aarch64__) || defined(__mips__) || defined(__powerpc__) || \
defined(__hppa__) || defined(__m68k__) || defined(__mc68010__) || \
defined(__powerpc64__) || defined(__sparc__) || defined(__alpha__) || \
- defined(__vax__) || defined(__sh3__))
+ defined(__vax__) || defined(__sh3__) || defined(__ia64__))
# define CAN_SANITIZE_UB 1
#elif defined(_WIN32)
# define CAN_SANITIZE_UB 1
Home |
Main Index |
Thread Index |
Old Index