Elliot Ronaghan 1167e9eff3 Check for __builtin_unreachable at configure time
Add a configure check for __builtin_unreachable instead of basing its
availability on the __GNUC__ version. On OS X using gcc (a real gcc, not the
bundled version that's just a gcc front-end) leads to a linker assertion:

    https://github.com/jemalloc/jemalloc/issues/266

It turns out that this is caused by a gcc bug resulting from the use of
__builtin_unreachable():

    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57438

To work around this bug, check that __builtin_unreachable() actually works at
configure time, and if it doesn't use abort() instead. The check is based on
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57438#c21.

With this `make check` passes with a homebrew installed gcc-5 and gcc-6.
2016-07-07 13:28:44 -07:00
..
2016-06-05 20:42:23 -07:00
2016-06-05 20:42:23 -07:00
2016-06-09 22:00:18 +09:00
2016-06-03 12:27:41 -07:00
2016-04-17 13:44:59 -07:00
2016-06-03 12:27:41 -07:00
2016-04-12 23:18:25 -07:00
2014-12-08 16:34:04 -08:00
2014-12-08 16:34:04 -08:00
2016-02-23 18:09:25 -08:00
2016-06-05 20:59:57 -07:00
2016-06-05 20:42:24 -07:00
2016-02-19 20:29:06 -08:00
2016-06-05 20:59:57 -07:00