llvm-6502/lib
Duncan Sands 6590b0457c There is an impedance matching problem between LLVM and
gcc exception handling: if an exception unwinds through
an invoke, then execution must branch to the invoke's
unwind target.  We previously tried to enforce this by
appending a cleanup action to every selector, however
this does not always work correctly due to an optimization
in the C++ unwinding runtime: if only cleanups would be
run while unwinding an exception, then the program just
terminates without actually executing the cleanups, as
invoke semantics would require.  I was hoping this
wouldn't be a problem, but in fact it turns out to be the
cause of all the remaining failures in the LLVM testsuite
(these also fail with -enable-correct-eh-support, so turning
on -enable-eh didn't make things worse!).  Instead we need
to append a full-blown catch-all to the end of each
selector.  The correct way of doing this depends on the
personality function, i.e. it is language dependent, so
can only be done by gcc.  Thus this patch which generalizes
the eh.selector intrinsic so that it can handle all possible
kinds of action table entries (before it didn't accomodate
cleanups): now 0 indicates a cleanup, and filters have to be
specified using the number of type infos plus one rather than
the number of type infos.  Related gcc patches will cause
Ada to pass a cleanup (0) to force the selector to always
fire, while C++ will use a C++ catch-all (null).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41484 91177308-0d34-0410-b5e6-96231b3b80d8
2007-08-27 15:47:50 +00:00
..
Analysis Use SmallVector. 2007-08-21 16:54:51 +00:00
Archive finishing touches of bytecode -> bitcode changes. also unbreak Windows 2007-07-06 20:28:40 +00:00
AsmParser regenerate 2007-08-06 21:00:46 +00:00
Bitcode Patch 10 for long double. Doing constants right needs expanding ConstantFP 2007-08-09 22:51:36 +00:00
CodeGen There is an impedance matching problem between LLVM and 2007-08-27 15:47:50 +00:00
Debugger switch this to bitcode instead of bytecode 2007-05-06 09:29:13 +00:00
ExecutionEngine rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned() 2007-08-23 05:15:32 +00:00
Linker Fix PR1611 - Visibility should be ignored for a declaration 2007-08-19 22:22:54 +00:00
Support Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual. 2007-08-24 22:09:56 +00:00
System Fix PR1581, patch by Timo Savola 2007-07-31 06:00:51 +00:00
Target call libc memcpy/memset if array size is bigger then threshold. 2007-08-27 10:18:20 +00:00
Transforms Don't promote volatile loads/stores. This is needed (for example) to handle setjmp/longjmp properly. 2007-08-26 21:43:30 +00:00
VMCore Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual. 2007-08-24 22:09:56 +00:00
Makefile build lib/Archive instead of lib/Bytecode 2007-05-06 19:50:06 +00:00