Dimitry Andric bfd6a1d202 Add an ugly hack to libgcc's unwind code, to make it behave properly at
runtime on amd64, when it is compiled by clang.  Some versions of clang
don't save and restore all callee registers, if a __builtin_eh_return()
intrinsic is used in a function.  This is particularly bad on amd64.

Until the problem gets fixed by upstream, use an asm statement to force
clang to assume the registers in question are clobbered, when invoking
__builtin_eh_return(), so it will emit code to save and restore them.

This should fix the crashes reported on -current with some C++ programs,
particularly those that throw exceptions over multiple function
boundaries.

Reported by:	stefanf
MFC after:	3 days
2013-01-10 23:36:02 +00:00
..
2012-12-07 12:39:58 +00:00
2012-11-16 01:37:25 +00:00
2012-09-14 21:17:53 +00:00
2012-08-08 09:42:44 +00:00
2012-09-22 17:47:37 +00:00
2010-11-18 18:22:58 +00:00
2012-11-10 01:46:13 +00:00
2012-12-03 19:00:23 +00:00
2012-11-29 13:35:44 +00:00
2012-10-05 18:42:50 +00:00
2012-10-22 18:56:31 +00:00
2013-01-03 07:25:30 +00:00
2012-02-22 03:36:15 +00:00
2011-12-08 02:40:46 +00:00
2012-12-22 21:32:12 +00:00