pkgsrc-WIP-changes archive

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

compiler-rt-ubsan: Try to enable ubsan/NetBSD lit tests



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Jul 7 09:57:22 2017 +0200
Changeset:	315b0c4f51ad063a96c1cf5eeffc80804142375b

Modified Files:
	compiler-rt-ubsan/distinfo
Added Files:
	compiler-rt-ubsan/patches/patch-test_ubsan_TestCases_Float_cast-overflow.cpp
	compiler-rt-ubsan/patches/patch-test_ubsan_lit.common.cfg

Log Message:
compiler-rt-ubsan: Try to enable ubsan/NetBSD lit tests

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=315b0c4f51ad063a96c1cf5eeffc80804142375b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-ubsan/distinfo                                  |  2 ++
 .../patch-test_ubsan_TestCases_Float_cast-overflow.cpp      | 13 +++++++++++++
 compiler-rt-ubsan/patches/patch-test_ubsan_lit.common.cfg   | 13 +++++++++++++
 3 files changed, 28 insertions(+)

diffs:
diff --git a/compiler-rt-ubsan/distinfo b/compiler-rt-ubsan/distinfo
index 7243060e56..fc88f6d5a8 100644
--- a/compiler-rt-ubsan/distinfo
+++ b/compiler-rt-ubsan/distinfo
@@ -33,3 +33,5 @@ SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__netbsd.cc) = 67e12a7c98a5
 SHA1 (patch-lib_sanitizer__common_sanitizer__syscall__generic.inc) = b9ab90fafcb14d589e02a2062fe7e978d6b7edbb
 SHA1 (patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc) = cf7e016fff0f57e7bcae93696ec05e5cff7b7093
 SHA1 (patch-lib_ubsan_ubsan__platform.h) = 5714b6b7cde91828375ad25fee1c8b9a8e9a200d
+SHA1 (patch-test_ubsan_TestCases_Float_cast-overflow.cpp) = f5cce8ef94b37a27610aa952d5ddc97b5638f7f4
+SHA1 (patch-test_ubsan_lit.common.cfg) = 65e809e0683c4197edbc8ea8d869bbfca6e46f57
diff --git a/compiler-rt-ubsan/patches/patch-test_ubsan_TestCases_Float_cast-overflow.cpp b/compiler-rt-ubsan/patches/patch-test_ubsan_TestCases_Float_cast-overflow.cpp
new file mode 100644
index 0000000000..444c4b53e9
--- /dev/null
+++ b/compiler-rt-ubsan/patches/patch-test_ubsan_TestCases_Float_cast-overflow.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- test/ubsan/TestCases/Float/cast-overflow.cpp.orig	2017-07-03 15:33:06.000000000 +0000
++++ test/ubsan/TestCases/Float/cast-overflow.cpp
+@@ -18,7 +18,7 @@
+ # define BYTE_ORDER __DARWIN_BYTE_ORDER
+ # define BIG_ENDIAN __DARWIN_BIG_ENDIAN
+ # define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__)
+ # include <sys/endian.h>
+ # define BYTE_ORDER _BYTE_ORDER
+ # define BIG_ENDIAN _BIG_ENDIAN
diff --git a/compiler-rt-ubsan/patches/patch-test_ubsan_lit.common.cfg b/compiler-rt-ubsan/patches/patch-test_ubsan_lit.common.cfg
new file mode 100644
index 0000000000..9df4bb1bfb
--- /dev/null
+++ b/compiler-rt-ubsan/patches/patch-test_ubsan_lit.common.cfg
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- test/ubsan/lit.common.cfg.orig	2017-07-03 15:33:06.000000000 +0000
++++ test/ubsan/lit.common.cfg
+@@ -70,7 +70,7 @@ config.substitutions.append( ("%gmlt ", 
+ config.suffixes = ['.c', '.cc', '.cpp']
+ 
+ # Check that the host supports UndefinedBehaviorSanitizer tests
+-if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows']:
++if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'NetBSD', 'Windows']:
+   config.unsupported = True
+ 
+ # Allow tests to use REQUIRES=stable-runtime.  For use when you cannot use XFAIL


Home | Main Index | Thread Index | Old Index