I don't think you can succeed at the level you are working at. As I said earlier, I think you will find that optimizations sabotage what you are trying to do. You must layer your work on top of the existing eh handling in gcc.