This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54969] Bitfield test not optimised at -Os.
- From: "suckfish at ihug dot co.nz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 09:56:36 +0000
- Subject: [Bug middle-end/54969] Bitfield test not optimised at -Os.
- Auto-submitted: auto-generated
- References: <bug-54969-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54969
--- Comment #3 from Ralph Loader <suckfish at ihug dot co.nz> 2012-10-18 09:56:36 UTC ---
Re copy-header: adding -ftree-ch to the command line does not improve the code.
Replacing the bitwise test 'f & 1' with a numeric test 'f < 27', gcc -Os
optimises properly.