[Bug tree-optimization/92229] Optimization makes it impossible to read overflow flag

arieltorti14 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Oct 26 01:26:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92229

--- Comment #2 from Ariel Torti <arieltorti14 at gmail dot com> ---
(In reply to joseph@codesourcery.com from comment #1)
> Built-in functions related to integer overflow should be defined in terms 
> of the C abstract machine model, not in terms of processor flags.

They should indeed, but what I want to implement here is a function that
outputs the value of the OV flag, a behavior that cannot be achieved as a
consequence of optimizations.


> See recent WG14 discussions around this issue for various language design 
> ideas.

Could you provide a link to the discussion in WG14 ? I'm not subscribed to it
and I cannot find it.


More information about the Gcc-bugs mailing list