/usr/src/gcc-8/debian/patches/libgomp-kfreebsd-testsuite.diff is in gcc-8-source 8-20180414-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # DP: Disable lock-2.c test on kfreebsd-*
Index: b/src/libgomp/testsuite/libgomp.c/lock-2.c
===================================================================
--- a/src/libgomp/testsuite/libgomp.c/lock-2.c
+++ b/src/libgomp/testsuite/libgomp.c/lock-2.c
@@ -4,6 +4,9 @@
int
main (void)
{
+#ifdef __FreeBSD_kernel__
+ return 1;
+#endif
int l = 0;
omp_nest_lock_t lock;
omp_init_nest_lock (&lock);
|