This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66922] wrong code for bit-field struct at -O1 and above on x86_64-linux-gnu
- From: "uros at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Jul 2015 09:51:09 +0000
- Subject: [Bug target/66922] wrong code for bit-field struct at -O1 and above on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-66922-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66922
--- Comment #2 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Jul 18 09:50:37 2015
New Revision: 225980
URL: https://gcc.gnu.org/viewcvs?rev=225980&root=gcc&view=rev
Log:
PR target/66922
* config/i386/i386.c (ix86_expand_pextr): Reject extractions
from misaligned positions.
(ix86_expand_pinsr): Reject insertions to misaligned positions.
testsuite/ChangeLog:
PR target/66922
* gcc.target/i386/pr66922.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr66922.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog