This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/66296] Gcc generated wrong code with uint16_t add/sub even with no optimization
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 May 2015 03:53:47 +0000
- Subject: [Bug c/66296] Gcc generated wrong code with uint16_t add/sub even with no optimization
- Auto-submitted: auto-generated
- References: <bug-66296-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66296
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
In C/C++, antithetic operands are promoted to int and then acted on. This is
not a bug due to that.