On Sat, 30 Jan 2021, gmhwxi wrote:

Is there an easy way to trap individual arithmetic operations?

For gcc/clang, https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html. It doesn't trap on its own, but you can easily wrap it with e.g. assert(!__builtin_add_overflow(...)) or similar.

--
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ats-lang-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/a9a1f8e3-4a12-1940-d8f-ff3bccf833e2%40elronnd.net.

Reply via email to