From patchwork Sat Mar 4 01:01:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 64119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp708047wrd; Fri, 3 Mar 2023 17:01:49 -0800 (PST) X-Google-Smtp-Source: AK7set/fIrEpEBuuIrfkfOgJhC957x19uRQtgF0pZnhQG4GxfrCmaosOqNcovvH9Tcy03sNFzMyy X-Received: by 2002:a17:907:31cd:b0:8cf:fda0:5b9b with SMTP id xf13-20020a17090731cd00b008cffda05b9bmr4524076ejb.22.1677891709577; Fri, 03 Mar 2023 17:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677891709; cv=none; d=google.com; s=arc-20160816; b=EZ1ggNs3e8OQFs5P0ViBhFLYeMlBt00ACqdFzFHNHH1opUyrD6Yvt4xhUIcQq6cZ8I Wpf4f6GmiBQtqq6jYlZbM/x3IJxS0zw0YbUvq+/hQrA5+ToNPkyvv9kGrH1jQwChNqnP mgHGY0t6SfJjK5c+ujgSjcrgRszcXsquCrVDdOD8dQg31hOpkekhYq6QAZipsZWsz2gd qw7yVqFO7Q6tpnk3EY2xwkvSDZYOfMhFaOgBNDNbG3tw/iWOeoWzEDku9y4V4k3geAge bbVDz9RcRS30S1NcV79OqCzVjTL6iItNbDFX6sXFENcf2+Jd9+cgJpCqwls5Xwmp/yhE de3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=AddbZllcRHbmwY5q79NmKIeMzV88QX07CodM9FflOdY=; b=vPHwAlDfZuOfF94u6ebSFuosK3DgIBbIHONDB93rNBmJ171BKZF9pY+zGt+0ARcLD9 +470yv6iubMH3G4ZkQwD8VseOIhICLLVF2ZIpRvDn/lIvIh4zlmwJPpqWFROF3md6Ocf USvowuN15lQY7p4u39F4baptL5uv+5wNSLh0OSSA1Nn8PnO52ipgykf9o1E4MzD0OwTP Cw0v7KXMgn3kkwf7Se1kuLlfiWz2tZg78hQ5kSbn5zXaF6RinqjxrICSWZwuL1lkU1gM EfJafJBd1+mFjWbUuJZ1sOKMfySELPhK/fRopZRDhVBBFzw8m7z9W7tNSDDcZON4H3oq xOhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lr0erm7E; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ko1-20020a170907986100b008b17b235681si3398294ejc.509.2023.03.03.17.01.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 17:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lr0erm7E; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5EA5D3858291 for ; Sat, 4 Mar 2023 01:01:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EA5D3858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677891708; bh=AddbZllcRHbmwY5q79NmKIeMzV88QX07CodM9FflOdY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=lr0erm7EesKHkcfh64ugVwjVl6ws2oA9bQA1o+COQ/UVPSTKv22gWHmqHBVjzQrKQ Ub43sM6+xdmV9YUMx6PPifOvH/mnQzbKDB7IvChXyAcl3yTbSnFwzlyAbCY4go5emx OD3iaoNx0U5rxxF4PrRfUMjqR9cVmjmCH+Revou4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id C9F943858C74 for ; Sat, 4 Mar 2023 01:01:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9F943858C74 To: Subject: [COMMITTED] testsuite: Skip gcc.dg/ipa/pr77653.c for CRIS MIME-Version: 1.0 Message-ID: <20230304010102.7585E20436@pchp3.se.axis.com> Date: Sat, 4 Mar 2023 02:01:02 +0100 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759396977388015349?= X-GMAIL-MSGID: =?utf-8?q?1759396977388015349?= CRIS defines DATA_ALIGNMENT such that alignment can be applied differently to different data of the same type, when "references to it must bind to the current definition" (varasm.cc:align_variable). Here, it means that more alignment is then applied to g, but not f, so the test-case fails because another message is emitted than the expected: a same-alignment test dominates the not-discardable test, and we get "Not unifying; original and alias have incompatible alignments" rather than "Not unifying; alias cannot be created; target is discardable". Because this DATA_ALIGNMENT behavior for CRIS depends on target options, and this test is already artificial by the use of -fcommon, better skip it. * gcc.dg/ipa/pr77653.c: Skip for cris-*-*. --- gcc/testsuite/gcc.dg/ipa/pr77653.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/ipa/pr77653.c b/gcc/testsuite/gcc.dg/ipa/pr77653.c index 2fddb7eab548..16df3fff6a41 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr77653.c +++ b/gcc/testsuite/gcc.dg/ipa/pr77653.c @@ -1,5 +1,6 @@ /* { dg-require-alias "" } */ /* { dg-options "-O2 -fcommon -fdump-ipa-icf-details" } */ +/* { dg-skip-if "Can align g more than f" { cris-*-* } } */ int a, b, c, d, e, h, i, j, k, l; const int f;