From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 396A33858407; Thu, 9 Dec 2021 16:40:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 396A33858407 From: "wcohen at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/96937] Duplicate DW_TAG_formal_parameter in out-of-line DW_TAG_subprogram instance Date: Thu, 09 Dec 2021 16:40:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Thu, 09 Dec 2021 16:40:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96937 --- Comment #7 from Will Cohen --- Created attachment 51963 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51963&action=3Dedit Reproducer showing duplicate formal parameters from kernel probe_rom.i Compiled with following to generate probe_rom.o with duplicate k formal parameters in the debuginfo: gcc -Wp,-MMD,arch/x86/kernel/.probe_roms.o.d -nostdinc -D__KERNEL__ -fmacro-pre fix-map=3D./=3D -Wall -Wundef -Werror=3Dstrict-prototypes -Wno-trigraphs -fno-strict-a liasing -fno-common -fshort-wchar -fno-PIE -Werror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dreturn-type -Wno-format-security -std=3Dg= nu89 -mno-s se -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=3Dnone -m64 -falign-jump s=3D1 -falign-loops=3D1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-bou= ndary=3D3 - mskip-rax-setup -mtune=3Dgeneric -mno-red-zone -mcmodel=3Dkernel -Wno-sign-= compare - fno-asynchronous-unwind-tables -mindirect-branch=3Dthunk-extern -mindirect-branch- register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wn o-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno- allow-store-data-races -Wframe-larger-than=3D2048 -fstack-protector-strong "-Wimpl icit-fallthrough=3D5" -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-var iable -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-trunca= tion=20 -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restr= ict - Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-st ack-check -fconserve-stack -Werror=3Ddate-time -Werror=3Dincompatible-point= er-types=20 -Werror=3Ddesignated-init -Wno-packed-not-aligned -g=20=20=20 -DKBUILD_MODFILE=3D'"arch/x8 6/kernel/probe_roms"' -DKBUILD_BASENAME=3D'"probe_roms"' -DKBUILD_MODNAME=3D'"probe_ roms"' -D__KBUILD_MODNAME=3Dkmod_probe_roms -c -o probe_roms.o probe_roms.i=