From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5458F3857C66; Fri, 7 May 2021 14:03:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5458F3857C66 From: "edlinger at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/100467] [12 regression] g++.dg/debug/dwarf2/thunk1.C Date: Fri, 07 May 2021 14:03:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: edlinger at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2021 14:03:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100467 Bernd Edlinger changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-05-07 --- Comment #1 from Bernd Edlinger --- confirmed, I did not try to test with --target_board=3Dunix/-m32 and the test case is unsupported on x86_64. I'm not sure what to here, the test case says // Test that we don't add the x86 PC thunk to .debug_ranges but my patch does emit a line number (if there is any) for thunks, and of course include them in debug_ranges and debug_aranges, so it is not possible to debug those functions where it was previously not possible. intersting that the LFB3 increase from 5 to 9 when I tried this: diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C b/gcc/testsuite/g++.dg/d index 304cf45..3d5f301 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C @@ -1,9 +1,9 @@ -// Test that we don't add the x86 PC thunk to .debug_ranges +// Test that we do add the x86 PC thunk to .debug_ranges // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } // { dg-require-effective-target fpic } // { dg-skip-if "darwin doesn't use the thunk for PIC" { *-*-darwin* } } // { dg-options "-g -fpic -fno-dwarf2-cfi-asm" } -// { dg-final { scan-assembler-times "LFB3" 5 } } +// { dg-final { scan-assembler-times "LFB3" 9 } } template void f(T t) { }=