From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E43D13858406; Fri, 2 Sep 2022 12:55:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E43D13858406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662123319; bh=iUTfdG+k76+o9yVVmTwq4GyYGmoQNkOVS9MY1BkESUY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xxiXIupzr59KwrgNaLfvvd95ULW9Jd7yRx4MP7R7l7VSycyffvANhoAYEqFesOs0n puxomWkBAT353wV/bTE3tCr3tquZeCG3UscMPfX3qkTQfBXmqNV3N4xny10dJpyerH 70HwEfOLkz3PJDeXcccQnpgiA+cJ68HrY4+bgtCI= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29247] [gdb, tdep] ../../gdb/ppc-sysv-tdep.c:1945: internal-error: ppc64_sysv_abi_return_value: Assertion `ok' failed Date: Fri, 02 Sep 2022 12:55:17 +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: 12.1 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=3D29247 --- Comment #27 from Tom de Vries --- (In reply to Tom de Vries from comment #23) > Unfortunately, I don't have access to a machine atm to investigate this. I was able to get my hands on a machine, and reproduced it. I minimized it to: ... $ cat gdb/testsuite/gdb.base/varargs.c #include #include long double _Complex orig =3D 4.0L + 4.0Li; long double _Complex copy =3D 0L + 0Li; int test (void) { return 0; } void do_copy (int num_vals, ...) { #if 1 va_list argp; va_start (argp, num_vals); copy =3D va_arg (argp, long double _Complex); #else copy =3D orig; #endif } void _start (void) { test (); while (1) ; } ... and: ... $ cat gdb/testsuite/gdb.base/varargs.exp standard_testfile .c set additional_flags {debug} lappend additional_flags "additional_flags=3D-nostdlib" # build the first test case if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable ${additional_flags}] !=3D "" } { untested "failed to compile" return -1 } # Start with a fresh gdb. clean_restart ${binfile} gdb_test_no_output "set print sevenbit-strings" gdb_test_no_output "set print address off" gdb_test_no_output "set width 0" runto test gdb_test "print orig" ".*=3D 4 \\+ 4i" gdb_test "print copy" ".*=3D 0 \\+ 0i" gdb_test "print do_copy (1, orig)" with_test_prefix "after copy" { gdb_test "print orig" ".*=3D 4 \\+ 4i" gdb_test "print copy" ".*=3D 4 \\+ 4i" } ... This doesn't seem to be related to the return value passing bit, so I propo= se to close this PR and file a new one (assuming this is an unknown issue). --=20 You are receiving this mail because: You are on the CC list for the bug.=