From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D579B385828E; Sun, 4 Sep 2022 07:56:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D579B385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662278206; bh=LBzlgCohkVQP9SnUwVwBrkircpQp3DFcvz5NT4RQ62A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WSuAanpeN1lL64z5ZR6HARcZmd5j9WfSkPYt13Z4HgOYRb96y5PT417BiYn7rzVW+ EpXiE8otnxx7LMmMaa0EEjLcXRk+vLok7UO8Wz4vVzdrBXdzaXt01mgxShBLHB0psK O5CS7kHfRs5uXa2ndQNxPeMctNHb5CC3lu/frTkM= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29543] [gdb/tdep, ppc] inferior call with long double vararg not handled correctly Date: Sun, 04 Sep 2022 07:56:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29543 --- Comment #6 from Tom de Vries --- (In reply to Tom de Vries from comment #5) > This fixes it for me: > ... > $ git diff > diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c > index 1fe81b95f6c..8d68f90df51 100644 > --- a/gdb/ppc-sysv-tdep.c > +++ b/gdb/ppc-sysv-tdep.c > @@ -1444,7 +1444,7 @@ ppc64_sysv_abi_push_param (struct gdbarch *gdbarch, > =3D=3D floatformats_ieee_quad)) > { > /* IEEE FLOAT128, args in vector registers. */ > - ppc64_sysv_abi_push_val (gdbarch, val, TYPE_LENGTH (type), 0, argp= os); > + ppc64_sysv_abi_push_val (gdbarch, val, TYPE_LENGTH (type), 16, > argpos); > ppc64_sysv_abi_push_vreg (gdbarch, val, argpos); > } > else if (type->code () =3D=3D TYPE_CODE_FLT > ... Hmm, we still had 16 in v2 ( PR29247 comment 16 ), but it became 0 in v3 ( PR29247 comment 18 ). --=20 You are receiving this mail because: You are on the CC list for the bug.=