[Bug c/66296] Gcc generated wrong code with uint16_t add/sub even with no optimization

miyuki at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 27 03:00:00 GMT 2015


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

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miyuki at gcc dot gnu.org

--- Comment #1 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
When (*a) - (*b) is evaluated, the operands are promoted to type int, so the
comparison in f0 evaluates to false.

https://stackoverflow.com/questions/7954717/type-promotion-in-c



More information about the Gcc-bugs mailing list