------- Comment #3 from rguenth at gcc dot gnu dot org 2008-11-26 10:00 ------- Doesn't happen on 64bit x86_64. Testcase which doesn't warn with 4.3:
struct xxx { short a; short b; void *c; }; void bar(struct xxx); void foo(struct xxx *p, int i) { struct xxx s = *p; if (s.a) i++; bar(s); } but indeed, SRA does bullshit here, cost-wise and correctness-wise. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- GCC target triplet| |i686-*-* Known to work| |4.3.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38271