This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/61095] [4.10 Regression] miscompile: tsan is broken in gcc trunk, works in 4.9
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 May 2014 13:27:26 +0000
- Subject: [Bug sanitizer/61095] [4.10 Regression] miscompile: tsan is broken in gcc trunk, works in 4.9
- Auto-submitted: auto-generated
- References: <bug-61095-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61095
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
CCP2 does this to
<bb 2>:
_2 = addr_1(D) & 18446607734267707384;
_3 = _2 * 4;
p_4 = (long unsigned int *) _3;
_5 = p_4 + 8;
xxx_6 = (long unsigned int) _5;
_7 = xxx_6 > 4123168604159;
_8 = (int) _7;
return _8;
but not CCP1 to
<bb 2>:
_2 = addr_1(D) & 18446607734267707384;
_3 = _2 * 4;
p_4 = (long unsigned int *) _3;
_5 = p_4 + 8;
xxx_6 = (long unsigned int) _5;
_7 = xxx_6 > 4123168604159;
_8 = (int) _7;
return _8;
that's weird.