From patchwork Tue Dec 4 12:11:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1007587 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491587-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ybIKLyAA"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 438LLr6m3Jz9s7W for ; Tue, 4 Dec 2018 23:11:30 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=vde+D/mqAz3okh+EblJjS9bGb1DB+ zX4X33L8pt2/TNxQBqE+fa+U9gJ2g89ifEZK0s4JbnpKoq9mMEVGR3Tjv808Avc4 NmYUYPuYStG5IDbMCjANyiGLgSztehVEjBQL+L/D0hRLnmbbEHi1XyKVpqOqLRhV ChJ4un1MmPCgno= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=05zTWdHVG7j18gK+7SpNdCAUZ04=; b=ybI KLyAAWQfsHWmMo6Kejgf9HzEZU16BayWiEV48wq8yBHa98hKJNHWTJP7iHQzKDY6 T0mXRbOPzqhyedMetDncrUNslbLQ0mwEGCPGKaYToQxEMveCLjxz3PWEc5aoMu29 M1SdVHeu7YhONfgeZTvI6OC5DLKU8XymjvMAM5dA= Received: (qmail 99477 invoked by alias); 4 Dec 2018 12:11:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98924 invoked by uid 89); 4 Dec 2018 12:11:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Dec 2018 12:11:21 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D8B762D7E4; Tue, 4 Dec 2018 12:11:19 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-117-214.ams2.redhat.com [10.36.117.214]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7EAB8104C53C; Tue, 4 Dec 2018 12:11:19 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id wB4CBG1x024413; Tue, 4 Dec 2018 13:11:17 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id wB4CBDga024389; Tue, 4 Dec 2018 13:11:13 +0100 Date: Tue, 4 Dec 2018 13:11:13 +0100 From: Jakub Jelinek To: Richard Biener , Jan Hubicka Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix predict-22.c testcase (PR tree-optimization/88285) Message-ID: <20181204121113.GI12380@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes Hi! All uses of explicit -freorder-blocks-and-partition needs to be guarded with freorder effective targets, e.g. arm doesn't support -fprofile-use. That said, until PR88310 is fixed, this effectively means the test is UNSUPPORTED anywhere. Ok for trunk anyway? 2018-12-04 Jakub Jelinek PR tree-optimization/88285 * gcc.dg/predict-22.c: Only compile on freorder targets. Jakub --- gcc/testsuite/gcc.dg/predict-22.c.jj 2018-12-02 13:33:16.616161656 +0100 +++ gcc/testsuite/gcc.dg/predict-22.c 2018-12-04 13:05:34.455226623 +0100 @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target freorder } } */ /* { dg-options "-O2 -fdump-tree-optimized-details-blocks -fdump-rtl-bbpart-details-blocks -freorder-blocks-and-partition" } */ volatile int v; void bar (void) __attribute__((leaf, cold));