From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 7C2BA388A421; Thu, 15 Apr 2021 16:42:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C2BA388A421 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-8200] libstdc++: Add -latomic to test flags for 32-bit sparc-linux X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 432f60c90dfb27f77e6f437bf1148f37bf73d70e X-Git-Newrev: a25590f29d07a88f6bf1b2c1ab0e4e012725db98 Message-Id: <20210415164249.7C2BA388A421@sourceware.org> Date: Thu, 15 Apr 2021 16:42:49 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 16:42:49 -0000 https://gcc.gnu.org/g:a25590f29d07a88f6bf1b2c1ab0e4e012725db98 commit r11-8200-ga25590f29d07a88f6bf1b2c1ab0e4e012725db98 Author: Jonathan Wakely Date: Thu Apr 15 16:39:55 2021 +0100 libstdc++: Add -latomic to test flags for 32-bit sparc-linux Without this I see a number of tests failing when -m32 is used. libstdc++-v3/ChangeLog: * testsuite/lib/dg-options.exp (add_options_for_libatomic): Also add libatomic options for 32-bit sparc*-*-linux-gnu. Diff: --- libstdc++-v3/testsuite/lib/dg-options.exp | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index 5160e4a72d1..7894973bcca 100644 --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -264,6 +264,7 @@ proc add_options_for_libatomic { flags } { if { [istarget hppa*-*-hpux*] || ([istarget powerpc*-*-*] && [check_effective_target_ilp32]) || [istarget riscv*-*-*] + || ([istarget sparc*-*-linux-gnu] && [check_effective_target_ilp32]) } { return "$flags -L../../libatomic/.libs -latomic" }