minimal basic support for ia64 and gcc6. i am not sure about the bp part of the GetPcSpBp() port, cherry please look :-)diff -r1.3 -r1.4 src/distrib/sets/lists/comp/md.ia64
(mrg)
--- src/distrib/sets/lists/comp/md.ia64 2017/02/23 02:04:11 1.3
+++ src/distrib/sets/lists/comp/md.ia64 2018/02/16 07:59:05 1.4
@@ -1,18 +1,20 @@ | @@ -1,18 +1,20 @@ | |||
1 | # $NetBSD: md.ia64,v 1.3 2017/02/23 02:04:11 scole Exp $ | 1 | # $NetBSD: md.ia64,v 1.4 2018/02/16 07:59:05 mrg Exp $ | |
2 | ./usr/include/gcc-4.8/ia64intrin.h comp-obsolete obsolete | 2 | ./usr/include/gcc-4.8/ia64intrin.h comp-obsolete obsolete | |
3 | ./usr/include/gcc-4.8/tgmath.h comp-obsolete obsolete | 3 | ./usr/include/gcc-4.8/tgmath.h comp-obsolete obsolete | |
4 | ./usr/include/gcc-5/ia64intrin.h comp-c-include | 4 | ./usr/include/gcc-5/ia64intrin.h comp-c-include gcc=5 | |
5 | ./usr/include/gcc-5/tgmath.h comp-c-include | 5 | ./usr/include/gcc-5/tgmath.h comp-c-include gcc=5 | |
6 | ./usr/include/gcc-6/ia64intrin.h comp-c-include gcc=6 | |||
7 | ./usr/include/gcc-6/tgmath.h comp-c-include gcc=6 | |||
6 | ./usr/include/ia64 comp-c-include | 8 | ./usr/include/ia64 comp-c-include | |
7 | ./usr/include/ia64/_regset.h comp-c-include | 9 | ./usr/include/ia64/_regset.h comp-c-include | |
8 | ./usr/include/ia64/acpi_machdep.h comp-c-include | 10 | ./usr/include/ia64/acpi_machdep.h comp-c-include | |
9 | ./usr/include/ia64/ansi.h comp-c-include | 11 | ./usr/include/ia64/ansi.h comp-c-include | |
10 | ./usr/include/ia64/aout_machdep.h comp-c-include | 12 | ./usr/include/ia64/aout_machdep.h comp-c-include | |
11 | ./usr/include/ia64/asm.h comp-c-include | 13 | ./usr/include/ia64/asm.h comp-c-include | |
12 | ./usr/include/ia64/atomic.h comp-c-include | 14 | ./usr/include/ia64/atomic.h comp-c-include | |
13 | ./usr/include/ia64/bootinfo.h comp-c-include | 15 | ./usr/include/ia64/bootinfo.h comp-c-include | |
14 | ./usr/include/ia64/bswap.h comp-c-include | 16 | ./usr/include/ia64/bswap.h comp-c-include | |
15 | ./usr/include/ia64/cdefs.h comp-c-include | 17 | ./usr/include/ia64/cdefs.h comp-c-include | |
16 | ./usr/include/ia64/cpu.h comp-c-include | 18 | ./usr/include/ia64/cpu.h comp-c-include | |
17 | ./usr/include/ia64/cpufunc.h comp-c-include | 19 | ./usr/include/ia64/cpufunc.h comp-c-include | |
18 | ./usr/include/ia64/dig64.h comp-c-include | 20 | ./usr/include/ia64/dig64.h comp-c-include |
--- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc 2018/02/07 02:32:01 1.15
+++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc 2018/02/16 07:59:05 1.16
@@ -1259,21 +1259,26 @@ void GetPcSpBp(void *context, uptr *pc, | @@ -1259,21 +1259,26 @@ void GetPcSpBp(void *context, uptr *pc, | |||
1259 | *pc = _UC_MACHINE_PC(ucontext); | 1259 | *pc = _UC_MACHINE_PC(ucontext); | |
1260 | *sp = _UC_MACHINE_SP(ucontext); | 1260 | *sp = _UC_MACHINE_SP(ucontext); | |
1261 | *bp = ucontext->uc_mcontext.__gregs[_REG_A6]; | 1261 | *bp = ucontext->uc_mcontext.__gregs[_REG_A6]; | |
1262 | #elif defined(__vax__) && SANITIZER_NETBSD | 1262 | #elif defined(__vax__) && SANITIZER_NETBSD | |
1263 | ucontext_t *ucontext = (ucontext_t*)context; | 1263 | ucontext_t *ucontext = (ucontext_t*)context; | |
1264 | *pc = _UC_MACHINE_PC(ucontext); | 1264 | *pc = _UC_MACHINE_PC(ucontext); | |
1265 | *sp = _UC_MACHINE_SP(ucontext); | 1265 | *sp = _UC_MACHINE_SP(ucontext); | |
1266 | *bp = ucontext->uc_mcontext.__gregs[_REG_FP]; | 1266 | *bp = ucontext->uc_mcontext.__gregs[_REG_FP]; | |
1267 | #elif defined(__sh3__) && SANITIZER_NETBSD | 1267 | #elif defined(__sh3__) && SANITIZER_NETBSD | |
1268 | ucontext_t *ucontext = (ucontext_t*)context; | 1268 | ucontext_t *ucontext = (ucontext_t*)context; | |
1269 | *pc = _UC_MACHINE_PC(ucontext); | 1269 | *pc = _UC_MACHINE_PC(ucontext); | |
1270 | *sp = _UC_MACHINE_SP(ucontext); | 1270 | *sp = _UC_MACHINE_SP(ucontext); | |
1271 | *bp = ucontext->uc_mcontext.__gregs[_REG_R14]; | 1271 | *bp = ucontext->uc_mcontext.__gregs[_REG_R14]; | |
1272 | #elif defined(__ia64__) && SANITIZER_NETBSD | |||
1273 | ucontext_t *ucontext = (ucontext_t*)context; | |||
1274 | *pc = _UC_MACHINE_PC(ucontext); | |||
1275 | *sp = _UC_MACHINE_SP(ucontext); | |||
1276 | *bp = ucontext->uc_mcontext.__gregs[1]; /* XXX */ | |||
1272 | #else | 1277 | #else | |
1273 | # error "Unsupported arch" | 1278 | # error "Unsupported arch" | |
1274 | #endif | 1279 | #endif | |
1275 | } | 1280 | } | |
1276 | 1281 | |||
1277 | } // namespace __sanitizer | 1282 | } // namespace __sanitizer | |
1278 | 1283 | |||
1279 | #endif // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD | 1284 | #endif // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD |
--- src/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h 2018/02/07 02:32:01 1.6
+++ src/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_platform.h 2018/02/16 07:59:05 1.7
@@ -9,23 +9,23 @@ | @@ -9,23 +9,23 @@ | |||
9 | // | 9 | // | |
10 | //===----------------------------------------------------------------------===// | 10 | //===----------------------------------------------------------------------===// | |
11 | #ifndef UBSAN_PLATFORM_H | 11 | #ifndef UBSAN_PLATFORM_H | |
12 | #define UBSAN_PLATFORM_H | 12 | #define UBSAN_PLATFORM_H | |
13 | 13 | |||
14 | #ifndef CAN_SANITIZE_UB | 14 | #ifndef CAN_SANITIZE_UB | |
15 | // Other platforms should be easy to add, and probably work as-is. | 15 | // Other platforms should be easy to add, and probably work as-is. | |
16 | #if (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ | 16 | #if (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ | |
17 | defined(__APPLE__)) && \ | 17 | defined(__APPLE__)) && \ | |
18 | (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \ | 18 | (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \ | |
19 | defined(__aarch64__) || defined(__mips__) || defined(__powerpc__) || \ | 19 | defined(__aarch64__) || defined(__mips__) || defined(__powerpc__) || \ | |
20 | defined(__hppa__) || defined(__m68k__) || defined(__mc68010__) || \ | 20 | defined(__hppa__) || defined(__m68k__) || defined(__mc68010__) || \ | |
21 | defined(__powerpc64__) || defined(__sparc__) || defined(__alpha__) || \ | 21 | defined(__powerpc64__) || defined(__sparc__) || defined(__alpha__) || \ | |
22 | defined(__vax__) || defined(__sh3__)) | 22 | defined(__vax__) || defined(__sh3__) || defined(__ia64__)) | |
23 | # define CAN_SANITIZE_UB 1 | 23 | # define CAN_SANITIZE_UB 1 | |
24 | #elif defined(_WIN32) | 24 | #elif defined(_WIN32) | |
25 | # define CAN_SANITIZE_UB 1 | 25 | # define CAN_SANITIZE_UB 1 | |
26 | #else | 26 | #else | |
27 | # define CAN_SANITIZE_UB 0 | 27 | # define CAN_SANITIZE_UB 0 | |
28 | #endif | 28 | #endif | |
29 | #endif //CAN_SANITIZE_UB | 29 | #endif //CAN_SANITIZE_UB | |
30 | 30 | |||
31 | #endif | 31 | #endif |