Work around buggy sequence points #11

Open
opened 2023-08-21 17:26:03 +00:00 by fyrchik · 0 comments

It seems there is a bug in the compiler currently. After optimization and offset recalculation, some sequence points do not correspond to any valid offset.

One of the ways to partially solve a problem is to not only remember instruction offset, but also instruction length. This way some +-1 errors in offset should be solved (and because of the nature of compiler optimizations we know that sequence points preserve their order, so this should work).

It seems there is a bug in the compiler currently. After optimization and offset recalculation, some sequence points do not correspond to any valid offset. One of the ways to partially solve a problem is to not only remember instruction offset, but also instruction length. This way some +-1 errors in offset should be solved (and because of the nature of compiler optimizations we know that sequence points preserve their order, so this should work).
Sign in to join this conversation.
There is no content yet.