From patchwork Thu Jun 6 14:00:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 1944683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=MmUD+VUU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vw5b23jlLz20KL for ; Fri, 7 Jun 2024 00:01:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1CC039A527E for ; Thu, 6 Jun 2024 14:01:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id E790038FD9A4 for ; Thu, 6 Jun 2024 14:00:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E790038FD9A4 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E790038FD9A4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717682443; cv=none; b=BWo8g6OVPIvjhDDVubak0Q/RGmXOP5mNKXzR0pyLrIVQN+7Q+ZFebehcA0xvqfalZGz1EAJ10rE0FJ1hnGVdHz+QJkbmAST2/Tt1ENUs17hEeT7+oPvI36Ebtgy6G6xOGN7JYxEE94B6OqpCciCTjx/m9wNlvbWIJfhrA52UZxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717682443; c=relaxed/simple; bh=hQBe/+R4PaEZsFSBpOSDAqXJMzjxvH8/kT8uJoHBiTg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=OwrfZ50L5lZ5ij8hK92Tr1oZuKoYnMzXkJLE1JAMfesfOtN1XQZxl+InDpLUAB2NKGjil4/2uKK8iPk8xA9BMQAl+miEyk/B9BwWVnSKU+dmYIYgAUkrvIZEDWZlQp4m6rB221Eq2MoXydkfl+8X4aAhgjPTOC4AEDg2l9kWgfI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 06397BD007; Thu, 6 Jun 2024 16:00:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1717682439; bh=hQBe/ +R4PaEZsFSBpOSDAqXJMzjxvH8/kT8uJoHBiTg=; b=MmUD+VUUxSetxOklZ7z99 QaDG+dhqd3E4UrXLmFmS1ByA/UiTX4x/D2bi4UtYfiD/BHh3dFK9anNxXz+wE8fJ TFsbbZycvZlo+81XKaP+z0x4s6amTxL5DAqisir/t7uc5G8hRF72VR5Y5KZJ9zjs ETLPbbjIqxBQGWiO3zyfq+tDbudSWIp+PXMqDwHDo63GJ1GTwr3PCLnaujfnFXKb R37msdupzIWb+3+/NhTrCs7GN5WPHdDboQR1Z0X6stGMSyHAh75IXTKY5g7894xx pIhedythjqG5T+MBdVmkPkOxHQphWLrp0ho28Ck4HVtQIr+xL+/LRIkxS65+kdiK g== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ziN2lPjoFPdh; Thu, 6 Jun 2024 16:00:39 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508551cc.dip0.t-ipconnect.de [80.133.81.204]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 7BE49BC9DE; Thu, 6 Jun 2024 16:00:39 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Ian Lance Taylor Subject: [PATCH] testsuite: go: Require split-stack support for go.test/test/index0.go [PR87589] Date: Thu, 06 Jun 2024 16:00:38 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org The index0-out.go test FAILs on Solaris (SPARC and x86, 32 and 64-bit), as well as several others: FAIL: ./index0-out.go execution, -O0 -g -fno-var-tracking-assignments The test SEGVs because it tries a stack acess way beyond the stack area. As Ian analyzed in the PR, the testcase currently requires split-stack support, so this patch requires just that. Tested on i386-pc-solaris2.11 and sparc-sun-solaris2.11. Ok for trunk? Rainer # HG changeset patch # Parent f29c8ac19b89d7ed6c5d957b99e03c8a387f6c31 testsuite: go: Require split-stack support for go.test/test/index0.go [PR87589] diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp --- a/gcc/testsuite/go.test/go-test.exp +++ b/gcc/testsuite/go.test/go-test.exp @@ -477,7 +477,8 @@ proc go-gc-tests { } { if { ( [file tail $test] == "select2.go" \ || [file tail $test] == "stack.go" \ || [file tail $test] == "peano.go" \ - || [file tail $test] == "nilptr2.go" ) \ + || [file tail $test] == "nilptr2.go" \ + || [file tail $test] == "index0.go" ) \ && ! [check_effective_target_split_stack] } { # These tests fails on targets without split stack. untested $name