components/ilmbase/patches/002-builtin-trap.patch
changeset 7696 3d9ec1a1fe4e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ilmbase/patches/002-builtin-trap.patch	Tue Feb 14 16:38:32 2017 -0800
@@ -0,0 +1,19 @@
+Solaris studio doesn't seem to define __builtin_trap() function, so raise SIGTRAP as a workaround.
+Will not send upstream.
+
+--- Iex/IexBaseExc.cpp	2016-11-08 15:34:26.104711329 +0000
++++ Iex/IexBaseExc.cpp	2016-11-10 13:30:11.505215478 +0000
+@@ -146,11 +146,12 @@
+         ::DebugBreak();
+ }
+ #else
++#include <signal.h>
+ void
+ iex_debugTrap()
+ {
+     // how to in Linux?
+     if (0 != ::getenv("IEXDEBUGTHROW"))
+-        __builtin_trap();
++        raise(SIGTRAP);
+ }
+ #endif