https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94311
--- Comment #6 from Mark Wielaard <mark at gcc dot gnu.org> --- (In reply to Mark Wielaard from comment #5) > I can no longer replicate the issue of the bad line numbers with gcc (GCC) > 10.1.1 20200507 (Red Hat 10.1.1-1) on fedora 32. With either 3.15.0 or > current valgrind git. Note that current valgrind git hides these warnings: commit 5920eb0c4302015f3648354e4f9c059f899194b7 Author: Philippe Waroquiers <philippe.waroqui...@skynet.be> Date: Tue Feb 18 21:35:44 2020 +0100 Improve line info tracing, in particular when using lto. With gcc 9 and --enable-lto, we now have spurious warnings telling that the line information in the debug info has huge line numbers, greater than the (valgrind) maximum of 2^20. These spurious warnings make that all tests are failing. This change modifies the tracing/debugging of the line info to: * disable by default the warning for line info greater than 2^20. When using -d, such warnings are however still shown (once). * allow to see all such warnings, when using at least -d -d -d -d And I am able to replicate with valgrind git on Fedora 32 with gcc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1) gcc-10.2.1-1.fc32.x86_64 $ { ./autogen.sh; ./configure --prefix=`pwd`/install --enable-only64bit --enable-lto; make -j8 install; } >& build.log $ ./install/bin/valgrind -d date 2>&1 | grep info\ entry ==110351== warning: Can't handle line info entry with line number 23270919 greater than 1048575 ==110351== warning: Can't handle inlined call info entry with line number 23270918 greater than 1048575