Give EH_ELSE access to __builtin_eh_pointer
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Dec 2015 19:42:31 +0000 (19:42 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Dec 2015 19:42:31 +0000 (19:42 +0000)
commitb8bdfa31dfc71d141b125024e9441ec966f9024e
tree927d28dc4e38d092d69634d784469cfb7fa7aa5f
parenta08574d7e1a4c0c3cd29c36e739c3f05f34e652e
Give EH_ELSE access to __builtin_eh_pointer

The must-not-throw wrapper for protect_cleanup_actions gets in
the way of being able to access __builtin_eh_pointer without
confusion as the identit of the exception to which we are
referring (b_eh_p has no usable argument up to this point).

Since EH_ELSE never comes from user derived code, let's drop
the c++ specific wrapping.

* tree-eh.c (honor_protect_cleanup_actions): Do not wrap
eh_else in a must-not-throw; set ehp_region for it too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231908 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-eh.c