https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71510
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Jun 14 07:26:52 2016 New Revision: 237426 URL: https://gcc.gnu.org/viewcvs?rev=237426&root=gcc&view=rev Log: 2016-06-14 Richard Biener <rguent...@suse.de> PR middle-end/71310 PR bootstrap/71510 * expr.h (get_bit_range): Declare. * expr.c (get_bit_range): Export. * fold-const.c (optimize_bit_field_compare): Use get_bit_range and word_mode again to constrain the bitfield access. Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/expr.h trunk/gcc/fold-const.c