]> gcc.gnu.org Git - gcc.git/commit
Fix problematic interaction between bitfields, unions, SSO and SRA
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Jan 2023 14:58:47 +0000 (15:58 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Jan 2023 19:46:56 +0000 (20:46 +0100)
commit01e80c4c630a5a6286a521b047d0ef80631c892c
tree029fd2ba2e412572d3a7dfdcad73bab99fbc5360
parentc4b36c822ac16bf6201ba120e0e9469b9ae53cd3
Fix problematic interaction between bitfields, unions, SSO and SRA

The handling of bitfields by the SRA pass is peculiar and this must be taken
into account to support the scalar_storage_order attribute.

gcc/
PR tree-optimization/108199
* tree-sra.c (sra_modify_expr): Deal with reverse storage order
for bit-field references.

gcc/testsuite/
* gcc.dg/sso-17.c: New test.
gcc/testsuite/gcc.dg/sso-17.c [new file with mode: 0644]
gcc/tree-sra.c
This page took 0.060291 seconds and 5 git commands to generate.