Re:The Zig Programming Language
by jforberg on Saturday May 04, 2019 @04:30PM
(#19829169)
Indeed. What I would really like is a way to toggle it on case-by-case basis. With -fwrapv you have to convince the code owner to toggle it globally, which can complicate things unless you are the owner.
[ Parent
| on HN ]
Re:The Zig Programming Language
by MaxBarraclough on Monday May 06, 2019 @03:12PM
(#19842709)
Looks like GCC doesn't have a pragma to enable it on a per-object-file basis. Pity. From the pragma docs I get the impression it's not so much that it would be a bad idea, as simply not something they've got round to implementing.
I don't imagine it's possible to check using a static assert, either.