https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101925
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Disabling SRA fixes it also, and I think that SRA drops the rev storage order > access attribute. Oddly enough for be_ip6_addr I see the rc.u.addr8[] > accesses do _not_ result in reverse_storage_order_for_component_p being true. > Why's that so? How should I detect this is subject to re-ordering? Because semantically this does not change anything, but I agree that the flag should be set in this case too for the sake of the optimizer. Please remove the test on QImode on line 8844 in c/c-decl.c.