diff options
author | Richard Biener <rguenther@suse.de> | 2022-09-14 09:00:35 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-09-14 11:57:23 +0200 |
commit | 05f5c42cb42c5088187d44cc45a5f671d19ad8c5 (patch) | |
tree | 95d7fd9c6372a386f4b648dfbb1daf3fdd5f1bda /gcc/tree-cfg.cc | |
parent | 93b09bf3246f413b8e469ebfd8ce43947c0073a6 (diff) | |
download | gcc-05f5c42cb42c5088187d44cc45a5f671d19ad8c5.zip gcc-05f5c42cb42c5088187d44cc45a5f671d19ad8c5.tar.gz gcc-05f5c42cb42c5088187d44cc45a5f671d19ad8c5.tar.bz2 |
tree-optimization/106934 - avoid BIT_FIELD_REF of bitfields
The following avoids creating BIT_FIELD_REF of bitfields in
update-address-taken. The patch doesn't implement punning to
a full precision integer type but leaves a comment according to
that.
PR tree-optimization/106934
* tree-ssa.cc (non_rewritable_mem_ref_base): Avoid BIT_FIELD_REFs
of bitfields.
(maybe_rewrite_mem_ref_base): Likewise.
* gfortran.dg/pr106934.f90: New testcase.
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions