https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111916
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:458db9b6149b2e9bef94ab76909eb914ed9f675a commit r14-4866-g458db9b6149b2e9bef94ab76909eb914ed9f675a Author: Richard Biener <rguent...@suse.de> Date: Mon Oct 23 14:08:41 2023 +0200 tree-optimization/111916 - SRA of BIT_FIELD_REF of constant pool entries The following adjusts a leftover BIT_FIELD_REF special-casing to only cover the cases general code doesn't handle. PR tree-optimization/111916 * tree-sra.cc (sra_modify_assign): Do not lower all BIT_FIELD_REF reads that are sra_handled_bf_read_p. * gcc.dg/torture/pr111916.c: New testcase.