From patchwork Thu Feb 22 23:14:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10236575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0FA560224 for ; Thu, 22 Feb 2018 23:15:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 928C229065 for ; Thu, 22 Feb 2018 23:15:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 879C729068; Thu, 22 Feb 2018 23:15:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id AD88829065 for ; Thu, 22 Feb 2018 23:15:16 +0000 (UTC) Received: (qmail 26220 invoked by uid 550); 22 Feb 2018 23:15:06 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 26067 invoked from network); 22 Feb 2018 23:15:04 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PH2UVt1N3OP7PrN7/oOFjjaxI98u1V748V3Cadtsq/w=; b=AMG3C+WMbhRM2gofegXRteIxdTTj/ibQOMzKzNMJnW6EPdyOmM/rJFI2LIKPOr095p HUMQJz52W9B1R73aynahFt/ewYZ3EGfN950OnFhWkDn9Vm+15ardQ7BcWo908QE+Hg+Y 74lM7FlJPBLeW7O8FgueDeZBQDMsukw7IcKYzwcPtARk+2jOZRSs0Pq5iZvNeSemqAvI B0nmGPe1A2U3nHPAUHOyqVD5K2hjH3Zw075nkV3EKw9GZeNk9LVga/CloxFsfqAe43st hLqrXoJ/egcU9gKmNVZjBbNWz8t8XL7J5SoMb8AGTfS/ZsLzkRkZVYU8oE1G6C8TJ9NZ SFWw== X-Gm-Message-State: APf1xPCT5M0P/TZ8z1hWjqyAuEAtlEcRKsGcauS2HOps7hnyZHGuhyhx LxpR7Gx9sku/yHjfFZ9d+inCfw== X-Google-Smtp-Source: AH8x227EdQ2a1vXsat7QoPk8IMvikDLsjicA36hoI5+g9w+4mCWVJearyZihykpRvfronJXknrg6Lg== X-Received: by 10.202.58.193 with SMTP id h184mr5616804oia.357.1519341292529; Thu, 22 Feb 2018 15:14:52 -0800 (PST) From: Laura Abbott To: Alexander Popov , Kees Cook , kernel-hardening@lists.openwall.com Cc: Laura Abbott Subject: [PATCH 1/2] gcc-plugins: Update cgraph_create_edge for gcc-8 Date: Thu, 22 Feb 2018 15:14:41 -0800 Message-Id: <20180222231442.29507-2-labbott@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180222231442.29507-1-labbott@redhat.com> References: <20180222231442.29507-1-labbott@redhat.com> X-Virus-Scanned: ClamAV using ClamSMTP gcc-8 changed the API for cgraph_create_edge. Update accordingly. Signed-off-by: Laura Abbott --- scripts/gcc-plugins/gcc-common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h index f46750053377..42c55c29157f 100644 --- a/scripts/gcc-plugins/gcc-common.h +++ b/scripts/gcc-plugins/gcc-common.h @@ -723,8 +723,14 @@ static inline const char *get_decl_section_name(const_tree decl) #define varpool_get_node(decl) varpool_node::get(decl) #define dump_varpool_node(file, node) (node)->dump(file) +#if BUILDING_GCC_VERSION >= 8000 +#define cgraph_create_edge(caller, callee, call_stmt, count, nest) \ + (caller)->create_edge((callee), (call_stmt), (count)) +#else #define cgraph_create_edge(caller, callee, call_stmt, count, freq, nest) \ (caller)->create_edge((callee), (call_stmt), (count), (freq)) + +#endif #define cgraph_create_edge_including_clones(caller, callee, old_call_stmt, call_stmt, count, freq, nest, reason) \ (caller)->create_edge_including_clones((callee), (old_call_stmt), (call_stmt), (count), (freq), (reason))