From patchwork Tue Apr 6 09:49:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1462699 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=b8zkrfn5; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FF2n56WLgz9sVt for ; Tue, 6 Apr 2021 19:49:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AE180389244B; Tue, 6 Apr 2021 09:49:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE180389244B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1617702581; bh=8JAcPi8QxXLj0z46Q+DegQ98ppuZGpVKUBG6qVMpQpY=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=b8zkrfn5iSG4sDIpiN9VC7MB/gJTo05BgA/ZqVm6T7yCkqTRo0GK2wP/mPOKLvylP 6Ca5Am7MT8vt5K8vJhIB4kue82BGcpkQ7EtilIgpmRLlRWbM5FPZxS/dpCy2GRs9cT qDp2kjUu8iB4gKDsmXn2WmYYZ4HkUXjpjtBRHo0U= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id F290A3858034 for ; Tue, 6 Apr 2021 09:49:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F290A3858034 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-431-jCATdsS5M0WZ1a4EMd4rJQ-1; Tue, 06 Apr 2021 05:49:37 -0400 X-MC-Unique: jCATdsS5M0WZ1a4EMd4rJQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40047800D53 for ; Tue, 6 Apr 2021 09:49:36 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-112-35.ams2.redhat.com [10.36.112.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B19A560C17; Tue, 6 Apr 2021 09:49:35 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 1369nWRZ1770145 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 6 Apr 2021 11:49:33 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 1369nWPu1770144; Tue, 6 Apr 2021 11:49:32 +0200 Date: Tue, 6 Apr 2021 11:49:32 +0200 To: Jason Merrill Subject: [committed] testsuite: Fix up g++.dg/ext/vector40.C test [PR97900] Message-ID: <20210406094932.GI1179226@tucnak> References: <20210403055316.678041-1-jason@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210403055316.678041-1-jason@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" On Sat, Apr 03, 2021 at 01:53:16AM -0400, Jason Merrill via Gcc-patches wrote: > We were copying attributes from the template to the instantiation without > considering that they might be dependent. To make sure that the new parms > have the appropriate properties for the code pattern, let's just regenerate > them. The test FAILs on i686-linux due to -Wpsabi diagnostics (when neither -mmmx nor -msse is enabled). Fixed the usual way, tested on x86_64-linux with -m32/-mno-mmx/-mno-sse,-m32,-m64 with both the PR97900 fix reverted and current trunk, committed to trunk as obvious. 2021-04-06 Jakub Jelinek PR c++/97900 * g++.dg/ext/vector40.C: Add -Wno-psabi -w to dg-options. Jakub --- gcc/testsuite/g++.dg/ext/vector40.C.jj 2021-04-03 10:00:54.309544456 +0200 +++ gcc/testsuite/g++.dg/ext/vector40.C 2021-04-06 11:45:12.520060058 +0200 @@ -1,4 +1,5 @@ // PR c++/97900 +// { dg-options "-Wno-psabi -w" } template T test(T __attribute__((vector_size(2 * sizeof(T)))) vec) {