This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/41076] [avr] pessimal code for logical OR of 8-bit fields
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2009 09:55:08 -0000
- Subject: [Bug target/41076] [avr] pessimal code for logical OR of 8-bit fields
- References: <bug-41076-592@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-08-15 09:55 -------
because this is what C says you are doing:
return (unsigned short) ((int) a | ((int) b << 8));
which is harder to transform back into what you expect.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41076