Thanks for fixing this, Jeff. I didn't realize that the testcase was testing the explicit source code line number hard coded the expected DWARF output.
It would have been nice if the testcase included a comment about the purpose and to alert people that the expected output needs to change if lines are added to the file. Thanks, David On Mon, Jan 18, 2021 at 4:40 PM sunil.k.pandey <skpan...@sc.intel.com> wrote: > > On Linux/x86_64, > > b654d23a470af25442e496ba62b5558e7c3ff1e6 is the first bad commit > commit b654d23a470af25442e496ba62b5558e7c3ff1e6 > Author: David Edelsohn <dje....@gmail.com> > Date: Sun Jan 17 18:18:56 2021 -0500 > > testsuite: Skip DWARF 5 testcases on AIX. > > caused > > FAIL: gcc.dg/debug/dwarf2/pr41445-7.c scan-assembler > DW_TAG_variable[^\\r\\n]*[\\r\\n]+[^\\r\\n]*"vari[^\\r\\n]*DW_AT_name([^\\r\\n]*[\\r\\n]+[^\\r\\n]*DW_AT_)*[^\\r\\n]*[\\r\\n]+[^\\r\\n]*[^\\r\\n]*DW_AT_decl_line > \\((0xa|10)\\) > FAIL: gcc.dg/debug/dwarf2/pr41445-7.c scan-assembler > DW_TAG_variable[^\\r\\n]*[\\r\\n]+[^\\r\\n]*"varj[^\\r\\n]*DW_AT_name([^\\r\\n]*[\\r\\n]+[^\\r\\n]*DW_AT_)*[^\\r\\n]*[\\r\\n]+[^\\r\\n]*[^\\r\\n]*DW_AT_decl_line > \\((0xa|10)\\) > > with GCC configured with > > ../../gcc/configure > --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r11-6759/usr > --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld > --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl > --enable-libmpx x86_64-linux --disable-bootstrap > > To reproduce: > > $ cd {build_dir}/gcc && make check > RUNTESTFLAGS="dwarf2.exp=gcc.dg/debug/dwarf2/pr41445-7.c > --target_board='unix{-m32}'" > $ cd {build_dir}/gcc && make check > RUNTESTFLAGS="dwarf2.exp=gcc.dg/debug/dwarf2/pr41445-7.c > --target_board='unix{-m32\ -march=cascadelake}'" > $ cd {build_dir}/gcc && make check > RUNTESTFLAGS="dwarf2.exp=gcc.dg/debug/dwarf2/pr41445-7.c > --target_board='unix{-m64}'" > $ cd {build_dir}/gcc && make check > RUNTESTFLAGS="dwarf2.exp=gcc.dg/debug/dwarf2/pr41445-7.c > --target_board='unix{-m64\ -march=cascadelake}'" > > (Please do not reply to this email, for question about this report, contact > me at skpgkp2 at gmail dot com)