This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/66420] valgrind error in improve_allocation
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Dec 2015 17:23:45 +0000
- Subject: [Bug rtl-optimization/66420] valgrind error in improve_allocation
- Auto-submitted: auto-generated
- References: <bug-66420-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66420
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Vladimir Makarov from comment #2)
> I reproduced the problem with --eanble-checking=valgrind. The valgrind
> message refers for
>
> if ((hregno = ALLOCNO_HARD_REGNO (a)) < 0)
> base_cost = ALLOCNO_UPDATED_MEMORY_COST (a);
>
Suggest print out or display the value of 'a' and the value of
ALLOCNO_HARD_REGNO (a) just before the if statement.
Something like
fprintf( stderr, "a %p\n", a);
fprintf( stderr, "ALLOCNO_HARD_REGNO(a) %d\n", ALLOCNO_HARD_REGNO(a));
valgrind should detect which one of these two is in error.