From patchwork Thu Nov 12 19:46:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 543636 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 8E713140B0F for ; Fri, 13 Nov 2015 06:48:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=MHZw34ZZ; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; q=dns; s=default; b=J18EDolQzs5fvjgDCK5FynL2wP 24Pw8vTurOVXUCOih/mOzvR8l9mElXTg6y/9ORso3CYzOoeo0p2wYGNGgQTjg1ht byMwU+01OApRTsIbhgxdiP7Tn+t/u00dw9utTNxkJ5YVfDjS+f4H8LaH+B7F+kpI 5C5BLZYtfWwRcBFJ4= 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:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; s=default; bh=8l6/N93STAFerKW36knlnZYfvfo=; b= MHZw34ZZNzwwSBXZpk3iyMUR1UQSCIA9qr3e4VoCvOzJ7g87JpeGEkQ3wJMFguht yTMsawZQV28Mh1zb3G+UZY5pfn4rwdNC1yfzZbI7oEXqS3/YsO2X844hkBQGA3GL eeFmwaB5X+1cVGrDkIBlA83hONedMZV/6e8sRaPohOM= Received: (qmail 44500 invoked by alias); 12 Nov 2015 19:48:12 -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 44474 invoked by uid 89); 12 Nov 2015 19:48:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: resqmta-po-12v.sys.comcast.net Received: from resqmta-po-12v.sys.comcast.net (HELO resqmta-po-12v.sys.comcast.net) (96.114.154.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 12 Nov 2015 19:48:10 +0000 Received: from resomta-po-04v.sys.comcast.net ([96.114.154.228]) by resqmta-po-12v.sys.comcast.net with comcast id gjnk1r0074vw8ds01jo9Fu; Thu, 12 Nov 2015 19:48:09 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-04v.sys.comcast.net with comcast id gjo71r00f2ztT3H01jo8ZN; Thu, 12 Nov 2015 19:48:08 +0000 From: Mike Stump Subject: tm_p.h for bb-reorder.c? Message-Id: <93D76812-17DC-4085-A1A2-FBF851B5E31D@comcast.net> Date: Thu, 12 Nov 2015 11:46:50 -0800 To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-IsSubscribed: yes My port needs the below patch. I think this was reduced by someone on a port that didn’t use some features (TARGET_SHORT_BRANCH_CHEAPER) of tm.h. So, the question is, is this the preferred way to do this? I don’t want to hookize TARGET_SHORT_BRANCH_CHEAPER, which is the other fix. If yes, Ok? diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 3dcb82a..7a2b351 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -114,6 +114,7 @@ #include "bb-reorder.h" #include "except.h" #include "fibonacci_heap.h" +#include "tm_p.h" /* The number of rounds. In most cases there will only be 4 rounds, but when partitioning hot and cold basic blocks into separate sections of