From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id CBFA8383DB97; Mon, 12 Sep 2022 16:09:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CBFA8383DB97 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CD407106F; Mon, 12 Sep 2022 09:10:05 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B86B53F73D; Mon, 12 Sep 2022 09:09:58 -0700 (PDT) From: Richard Sandiford To: Yvan Roux Mail-Followup-To: Yvan Roux ,, =?utf-8?Q?Torbj=C3=B6?= =?utf-8?Q?rn?= SVENSSON , , richard.sandiford@arm.com Cc: , =?utf-8?Q?Torbj=C3=B6rn?= SVENSSON , Subject: Re: [PATCH] testsuite: gluefile file need to be prefixed References: <20220909130313.2562293-1-torbjorn.svensson@foss.st.com> <20220912155527.GA11462@gnbcxd0114.gnb.st.com> Date: Mon, 12 Sep 2022 17:09:57 +0100 In-Reply-To: <20220912155527.GA11462@gnbcxd0114.gnb.st.com> (Yvan Roux's message of "Mon, 12 Sep 2022 17:55:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-48.5 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_NONE,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Yvan Roux writes: > Hi Richard, > On Mon, Sep 12, 2022 at 12:56:52PM +0100, Richard Sandiford via Gcc-patch= es wrote: >> Torbj=C3=B6rn SVENSSON via Gcc-patches writes: >> > PR/95720 >> > When the status wrapper is used, the gluefile need to be prefixed with >> > -Wl, in order for the test cases to have the dump files with the >> > expected names. >> > >> > gcc/testsuite/ChangeLog: >> > >> > * gcc/testsuite/lib/g++.exp: Moved gluefile block to after >> > flags have been prefixed for the target_compile call. >> > * gcc/testsuite/lib/gcc.exp: Likewise. >> > * gcc/testsuite/lib/wrapper.exp: Reset adjusted state flag. >>=20 >> I agree this looks right, but I'm curious how you ended up with the >> behaviour seen in comment 16. I thought having: >>=20 >> if { [target_info needs_status_wrapper] !=3D "" && [info exists glue= file] } { >> lappend options "libs=3D${gluefile}" >> lappend options "ldflags=3D${wrap_flags}" >> } >>=20 >> before the dg-additional-files-options/gcc_adjusted_linker_flags would >> lead to the gluefile missing a "-Wl," first time round. How is it that >> the gluefile still gets the "-Wl," and the -T misses it instead? > > The issue is that dg-additional-files-options/gcc_adjusted_linker_flags > add the "-Wl," prefix to the content of the global variable > and not to the one of