[Bug middle-end/38271] [4.4 Regression] Spurious / missing "... used uninitialized in this function" warning
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 26 10:02:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list