Idiom exclusion is really so important
Idiom exclusion is really so important
Posted Nov 13, 2024 11:09 UTC (Wed) by intelfx (subscriber, #130118)In reply to: Idiom exclusion is really so important by pm215
Parent article: Progress on toolchain security features
> But I'll absolutely take "looks like a function call and has 'add' as a word rather than '+' as a symbol, but is extremely obviously doing an overflow check" over "has '+' in the expression but is ridiculously opaque about what it is actually doing"
Who was saying anything about being opaque?
I just proposed a `__builtin_overflows(expr)` thing which makes it equally obvious that it is a test for overflow. **And** that it is an arithmetic expression.
All those builtins disguising arithmetic operations as function calls — no. Just no. The arithmetics are infix for a reason. This is C, not some kind of a Lisp or a reverse Forth.
