Jakub Jelinek writes: > Hi! > > Bootstrapped/regtested on x86_64-linux and i686-linux, committed to 4.6 > branch. > > 2011-12-09 Jakub Jelinek <ja...@redhat.com> > > Backport from mainline > 2011-12-08 Jakub Jelinek <ja...@redhat.com> > > PR tree-optimization/51466 > * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy > TREE_SIDE_EFFECTS. > > * gcc.c-torture/execute/pr51466.c: New test. > > 2011-11-28 Jakub Jelinek <ja...@redhat.com> > > PR tree-optimization/50078 > * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over > TREE_THIS_VOLATILE also from the old to new lhs resp. rhs. > > * gcc.dg/pr50078.c: New test.
This patch, r182157 on 4.6 branch, caused a test suite regression on arm-linux-gnueabi: +FAIL: gcc.dg/pr45819.c (test for excess errors) because the compiler now emits the following warning: pr45819.c: In function 'ehci_hub_control': pr45819.c:16:10: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields] pr45819.c:16:10: note: when a volatile object spans multiple type-sized locations, the compiler must choose between using a single mis-aligned access to preserve the volatility, or using multiple aligned accesses to avoid runtime faults; this code may fail at runtime if the hardware does not allow this access I believe the warning is correct, so perhaps the warning should just be suppressed in pr45819.c with -w. Trunk also has this issue. /Mikael