This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63645] Incorrect code generation
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Oct 2014 21:30:48 +0000
- Subject: [Bug c/63645] Incorrect code generation
- Auto-submitted: auto-generated
- References: <bug-63645-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63645
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This:
expr->oper == GNM_EXPR_OP_FUNCALL &&
expr->func.argc == 1
is being combined into:
D.2319_2 = BIT_FIELD_REF <*expr_1, 64, 0>;
D.2320_3 = D.2319_2 & 18446744069414584575;
D.2320_3 == 4294967297
Which is correct and I think is valid.
Valgrind does not realize the part of expr will not match part of the
and/equals so it complains. Basically a bug in valgrind for not tracking
uninitialized bits correctly.
The solution to asan message was provided in comment #4.