Skip to content

Floating-point stack with respect to CATCH / THROW. #135

Answered by ruv
SirWumpus asked this question in Q&A
Discussion options

You must be logged in to vote

The section 9.6.1.2275 THROW says:

  • adjust the depths of all stacks defined by this standard so that they are the same as the depths saved in the exception frame

One small problem (as I pointed out in my comment) is that saving of depths is not explicitly specified for catch, I think by an omission.

So, yes, if an exception occurs, the floating-point stack depth shall be restored.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SirWumpus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants