From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 30A7A3858D3C for ; Wed, 16 Feb 2022 05:39:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 30A7A3858D3C Received: by smtp.gentoo.org (Postfix, from userid 559) id B00F6343145; Wed, 16 Feb 2022 05:39:12 +0000 (UTC) Date: Wed, 16 Feb 2022 00:39:09 -0500 From: Mike Frysinger To: Hans-Peter Nilsson Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 04/12] sim/testsuite/cris/c: Use -sim3 but only for newlib targets Message-ID: Mail-Followup-To: Hans-Peter Nilsson , gdb-patches@sourceware.org References: <20220214225824.AC90A20439@pchp3.se.axis.com> <20220214230255.DC76120439@pchp3.se.axis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UztsJeIBPO9gX5aL" Content-Disposition: inline In-Reply-To: <20220214230255.DC76120439@pchp3.se.axis.com> X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2022 05:39:14 -0000 --UztsJeIBPO9gX5aL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 15 Feb 2022 00:02, Hans-Peter Nilsson via Gdb-patches wrote: > But, save and restore CFLAGS_FOR_TARGET around the modification and > use where needed, to not have the CRIS-specific modification affect a > continuing test-run (possibly for other targets). this part isn't needed by design. every .exp file calls `sim_init` which in turn calls `sim_init_toolchain` which fully initializes the toolchain for the current file. so as soon as c.exp finishes running, whatever comes next is going to reset the flags you saved. -mike --UztsJeIBPO9gX5aL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIMjf0ACgkQQWM7n+g3 9YHumRAAx1OY5DSXR/XhR1aTcC7Dk5ZHutoc7/WtrSrT4Fc8I/xUI7FcM0AJqnBx bs1Q0cPz+lUgr4HToFK+P7K8UVSNHLJEBNkc6ckDJWwfKNkiR0DpfCRG62ZoFKk3 EpCi3oyiBxUGgTTO0MR6JsGHrQaE+bL/rW0XgxYDRySVy3/YKJ43YYcgAkWLFkZF rDiSvH+KY6KxbYYKY+V157Y7iqt/ZK9S1f4cZA81fcMRsamgaAUzBfocuLT2Tmpy bDZ1pjkVj2+j/cmtTdU4TadWgfhHwNRa6RD6xuH/xrGwnXBfNl8bZx89+1hGOaWi rlc/AOJ1RkmERic92fy3ZuzzbWH7yhzZ89ZBtG1mM8iFCXaGpknJ/xCbcVClo2RU S0TzCcUr3QuLH38Sdt7wTMXyRLmLCY1oDfIXfTx5lfnY0ei5FOJCGt6TgEG5cXAi 7jHIdHTi0VyiUSxjB7Q4WGfHRUO3EyL1laAf9pZillsmTNNKvcTBEPGp09zIKGbR BMpX60Uno+OWrYhOVNvsqUgcnQC0sB/FZOIRHVTuMh2FOTRI+Q1S/pSh/nQWw8Hw K7rWVQiqnbD6t8eG4I5FGjUfY4xUjC7sRCtSTzedlUdVEXBUMeRQOh4YUzybK8Rq 3O7oTkbR603xbF8EJRAW3ysxRY7lG+cPwNwjYB0w0VQNj+f4VPA= =hPT6 -----END PGP SIGNATURE----- --UztsJeIBPO9gX5aL--