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: "vmakarov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Dec 2015 17:03:28 +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 #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
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);
I checked all ALL_ALLOCNO_HARD_REGNO in gdb (the test is not big) and I see
that hard regnos are always setup before their usage.
I also built the same GCC modifying Makefile the same way but *without*
--eanble-checking=valgrind and then used valgrind directly. I have no valgrind
messages.
So I don't know is it IRA, GCC in whole, or valgrind problem. Probably, it
is not an IRA problem.