spack/var/spack/repos/builtin/packages/qthreads/trap.patch
2016-04-19 16:45:05 -04:00

12 lines
317 B
Diff

--- a/include/qthread/qthread.hpp
+++ b/include/qthread/qthread.hpp
@@ -236,7 +236,7 @@
return qthread_incr64((uint64_t *)operand, incr);
default:
- *(int *)(0) = 0;
+ __builtin_trap();
}
return T(0); // never hit - keep compiler happy
}