Give EH_ELSE access to __builtin_eh_pointer
authorRichard Henderson <rth@redhat.com>
Tue, 22 Dec 2015 19:42:31 +0000 (11:42 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 22 Dec 2015 19:42:31 +0000 (11:42 -0800)
commitb5c4bc31baa52fc4ef51a89dcf97413f34c86d70
tree927d28dc4e38d092d69634d784469cfb7fa7aa5f
parent7c11b0fef088480510a74f0f43015776c40be047
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.

From-SVN: r231908
gcc/ChangeLog
gcc/tree-eh.c