From patchwork Wed Oct 27 07:51:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 46697 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E660A385840D for ; Wed, 27 Oct 2021 07:52:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E660A385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1635321120; bh=urUB8rc/s4+yd81wkMXFH+km2yNozU3w0J+UfxwiHzM=; 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=G84AH4jroVaFIhNRg2eV06dptmemZZbXvBISVB5W+l0rCoWiUhf3TRuyXCWehHIEc L8vIGLEntef7q1IwV3RuG22hHCwSIoMmFU8+mzqMfubUunfyVCErsPwWDDSmfoSryB PSKLsrIcNvgCRYD+MHjm+fwG4UFuPBTP38PF9ATg= 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 [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 3A5113858C27 for ; Wed, 27 Oct 2021 07:51:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3A5113858C27 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-454-i9k7XTC2P1yi412TXGRwdg-1; Wed, 27 Oct 2021 03:51:30 -0400 X-MC-Unique: i9k7XTC2P1yi412TXGRwdg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C41258026AD; Wed, 27 Oct 2021 07:51:29 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.193.172]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5AB805DF21; Wed, 27 Oct 2021 07:51:29 +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 19R7pQ5k912361 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 27 Oct 2021 09:51:26 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 19R7pPAf912360; Wed, 27 Oct 2021 09:51:25 +0200 Date: Wed, 27 Oct 2021 09:51:25 +0200 To: "Kewen.Lin" Subject: [committed] testsuite: Fix up gcc.dg/pr102897.c testcase [PR102897] Message-ID: <20211027075125.GF304296@tucnak> References: <96541e9b-46ff-e4a1-e60c-1d035f219560@linux.ibm.com> MIME-Version: 1.0 In-Reply-To: <96541e9b-46ff-e4a1-e60c-1d035f219560@linux.ibm.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-5.4 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_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" On Tue, Oct 26, 2021 at 11:40:01AM +0800, Kewen.Lin via Gcc-patches wrote: > gcc/testsuite/ChangeLog: > > * gcc.dg/pr102897.c: New test. The testcase FAILs on i686-linux due to: FAIL: gcc.dg/pr102897.c (test for excess errors) Excess errors: .../gcc/gcc/testsuite/gcc.dg/pr102897.c:11:1: warning: MMX vector return without MMX enabled changes the ABI [-Wpsabi] .../gcc/gcc/testsuite/gcc.dg/pr102897.c:10:10: warning: MMX vector argument without MMX enabled changes the ABI [-Wpsabi] Fixed by adding -Wno-psabi. Tested on x86_64-linux and i686-linux, committed to trunk as obvious. 2021-10-27 Jakub Jelinek * gcc.dg/pr102897.c: Add -Wno-psabi to dg-options. Jakub --- gcc/testsuite/gcc.dg/pr102897.c.jj 2021-10-27 09:00:28.848276246 +0200 +++ gcc/testsuite/gcc.dg/pr102897.c 2021-10-27 09:40:45.628296807 +0200 @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* Specify C99 to avoid the warning/error on compound literals. */ -/* { dg-options "-O1 -std=c99" } */ +/* { dg-options "-O1 -std=c99 -Wno-psabi" } */ /* Verify that there is no ICE. */