Re: [PATCH] Avoid bitfield stores to clobber adjacent variables (PR middle-end/48124)

2012-09-18 Thread saimf
Which gcc version does this patch apply to? Thanks! Bugzilla from ja...@redhat.com wrote: > > Hi! > > This patch changes get_best_mode, so that it doesn't suggest using larger > modes if it means it could clobber variables located after the containing > one. > > On the attached testcase on x

[PATCH] Avoid bitfield stores to clobber adjacent variables (PR middle-end/48124)

2011-04-01 Thread Jakub Jelinek
Hi! This patch changes get_best_mode, so that it doesn't suggest using larger modes if it means it could clobber variables located after the containing one. On the attached testcase on x86_64, the structure is 12 bytes wide, and the last bitfield occupies 14 bits in the bytes 8 and 9 from the beg