Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/compiler-rt/patches compiler-rt: add new patches
details: https://anonhg.NetBSD.org/pkgsrc/rev/9045367df23d
branches: trunk
changeset: 429267:9045367df23d
user: adam <adam%pkgsrc.org@localhost>
date: Sat Apr 18 08:03:53 2020 +0000
description:
compiler-rt: add new patches
diffstat:
lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__linux__libcdep.cpp | 22 +++++
lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp | 37 ++++++++++
2 files changed, 59 insertions(+), 0 deletions(-)
diffs (67 lines):
diff -r bab89b44ea53 -r 9045367df23d lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__linux__libcdep.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__linux__libcdep.cpp Sat Apr 18 08:03:53 2020 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-lib_sanitizer__common_sanitizer__linux__libcdep.cpp,v 1.1 2020/04/18 08:03:53 adam Exp $
+
+Fix building on NetBSD.
+
+--- lib/sanitizer_common/sanitizer_linux_libcdep.cpp.orig 2018-10-07 10:50:07.000000000 +0000
++++ lib/sanitizer_common/sanitizer_linux_libcdep.cpp
+@@ -520,13 +520,13 @@ void GetThreadStackAndTls(bool main, upt
+ #endif
+ }
+
+-#if !SANITIZER_FREEBSD && !SANITIZER_OPENBSD
++#if !SANITIZER_FREEBSD && !SANITIZER_NETBSD && !SANITIZER_OPENBSD
+ typedef ElfW(Phdr) Elf_Phdr;
+ #elif SANITIZER_WORDSIZE == 32 && __FreeBSD_version <= 902001 // v9.2
+ #define Elf_Phdr XElf32_Phdr
+ #define dl_phdr_info xdl_phdr_info
+ #define dl_iterate_phdr(c, b) xdl_iterate_phdr((c), (b))
+-#endif // !SANITIZER_FREEBSD && !SANITIZER_OPENBSD
++#endif // !SANITIZER_FREEBSD && !SANITIZER_NETBSD && !SANITIZER_OPENBSD
+
+ struct DlIteratePhdrData {
+ InternalMmapVectorNoCtor<LoadedModule> *modules;
diff -r bab89b44ea53 -r 9045367df23d lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp Sat Apr 18 08:03:53 2020 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp,v 1.1 2020/04/18 08:03:53 adam Exp $
+
+urio driver has been removed from NetBSD.
+
+--- lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp.orig 2020-03-30 13:20:43.073033175 +0000
++++ lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
+@@ -190,7 +190,9 @@
+ #include <dev/sun/vuid_event.h>
+ #include <dev/tc/sticio.h>
+ #include <dev/usb/ukyopon.h>
++#if __NetBSD_Version__ < 999000000
+ #include <dev/usb/urio.h>
++#endif
+ #include <dev/usb/usb.h>
+ #include <dev/usb/utoppy.h>
+ #include <dev/vme/xio.h>
+@@ -702,7 +704,9 @@ unsigned struct_twe_drivecommand_sz = si
+ unsigned struct_twe_paramcommand_sz = sizeof(twe_paramcommand);
+ unsigned struct_twe_usercommand_sz = sizeof(twe_usercommand);
+ unsigned struct_ukyopon_identify_sz = sizeof(ukyopon_identify);
++#if __NetBSD_Version__ < 999000000
+ unsigned struct_urio_command_sz = sizeof(urio_command);
++#endif
+ unsigned struct_usb_alt_interface_sz = sizeof(usb_alt_interface);
+ unsigned struct_usb_bulk_ra_wb_opt_sz = sizeof(usb_bulk_ra_wb_opt);
+ unsigned struct_usb_config_desc_sz = sizeof(usb_config_desc);
+@@ -1291,8 +1295,10 @@ unsigned IOCTL_STICIO_RESET = STICIO_RES
+ unsigned IOCTL_STICIO_STARTQ = STICIO_STARTQ;
+ unsigned IOCTL_STICIO_STOPQ = STICIO_STOPQ;
+ unsigned IOCTL_UKYOPON_IDENTIFY = UKYOPON_IDENTIFY;
++#if __NetBSD_Version__ < 999000000
+ unsigned IOCTL_URIO_SEND_COMMAND = URIO_SEND_COMMAND;
+ unsigned IOCTL_URIO_RECV_COMMAND = URIO_RECV_COMMAND;
++#endif
+ unsigned IOCTL_USB_REQUEST = USB_REQUEST;
+ unsigned IOCTL_USB_SETDEBUG = USB_SETDEBUG;
+ unsigned IOCTL_USB_DISCOVER = USB_DISCOVER;
Home |
Main Index |
Thread Index |
Old Index