From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 846FF385140B; Mon, 31 Oct 2022 17:09:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 846FF385140B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667236140; bh=NSIe78mHEdVmkazitcqzu1Ost870Fb4q67vywwlYiKU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I/28SUWOyswDiFipkN9AYOOkzPrnNJ4b/Etvjteq+Mlsvls+JX2bw5D7G2ez4l1hH IR3l5V5ETQnxJzgjrFSL8cwq/dJ8YnwWVt8Ix7qSQz5ge7IVRzg0xbN+kaIeX2MElZ iZveef4SiBdOL5xc1sW3JeW9AApByZlRNHR6Lgo8= From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107453] New stdarg tests in r13-3549-g4fe34cdcc80ac2 fail Date: Mon, 31 Oct 2022 17:08:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed cf_reconfirmed_on cf_gccbuild cf_gcchost cc cf_gcctarget bug_status 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107453 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2022-10-31 Build|powerpc64-linux-gnu, | |powerpc64le-linux-gnu | Host|powerpc64-linux-gnu, | |powerpc64le-linux-gnu | CC| |ebotcazou at gcc dot gnu.o= rg Target|powerpc64-linux-gnu, | |powerpc64le-linux-gnu | Status|UNCONFIRMED |NEW --- Comment #2 from Eric Botcazou --- Likewise on SPARC64. It's a TARGET_STRICT_ARGUMENT_NAMING target, so we ha= ve in expand_call: /* Count the arguments and set NUM_ACTUALS. */ num_actuals =3D call_expr_nargs (exp) + num_complex_actuals + structure_value_addr_parm; /* Compute number of named args. First, do a raw count of the args for INIT_CUMULATIVE_ARGS. */ if (type_arg_types !=3D 0) n_named_args =3D (list_length (type_arg_types) /* Count the struct value address, if it is passed as a parm. */ + structure_value_addr_parm); else /* If we know nothing, treat all args as named. */ n_named_args =3D num_actuals; which yields n_named_args =3D num_actuals since type_arg_types =3D=3D 0 and= then: if (type_arg_types !=3D 0 && targetm.calls.strict_argument_naming (args_so_far)) ; so n_named_args =3D num_actuals in the end and the game is over.=