From patchwork Sat Apr 27 09:20:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 1091903 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-499781-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=gdcproject.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="U2sMPx+j"; 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 44rllH1mw9z9s55 for ; Sat, 27 Apr 2019 19:20:40 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=DkNK2rXl7X2Q317dGq2LczJnvUOD8bZsUMJtQot9Iuf d3OmpJsc7cx5EomjiXpW5telnV9l76/wtJzHl9QXFFKyuS386ukX8ECAnrwfHDtg RVi1/XCakxFPXgZAqhpYgJLEkpjWI9Gy/XZ9iz42M0++/EZxZOhZGWD3xtwBdfSY = 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 :mime-version:from:date:message-id:subject:to:cc:content-type; s=default; bh=Ptdh0U2XSoitedN7+mWbnDmGRdM=; b=U2sMPx+jE/WQOMNdj Z5KDr/XB8iMU5T80AXS+BcSaXpRZ8pLo6Aq9Q1Egp9KHXs498DC6of4Tdvjm00Q7 BolCp28RBjsp4Ihh4yyQvUhoFAFFKNB0DI5vF2dT+DThU6L+VNI62tZv8nZPrJk9 f461vqwhYns0hJ0fHn+dhxbYus= Received: (qmail 78023 invoked by alias); 27 Apr 2019 09:20:31 -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 78005 invoked by uid 89); 27 Apr 2019 09:20:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:Sat X-HELO: mail-qt1-f180.google.com Received: from mail-qt1-f180.google.com (HELO mail-qt1-f180.google.com) (209.85.160.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 Apr 2019 09:20:30 +0000 Received: by mail-qt1-f180.google.com with SMTP id b3so6816161qtc.12 for ; Sat, 27 Apr 2019 02:20:29 -0700 (PDT) MIME-Version: 1.0 From: Iain Buclaw Date: Sat, 27 Apr 2019 11:20:16 +0200 Message-ID: Subject: [PATCH, netbsd] Include memmodel.h in netbsd-d.c To: gcc-patches Cc: Kamil Rytarowski X-IsSubscribed: yes Hi, Baseline compiler builds fail on all sparc*-netbsd configurations. In file included from ./tm_p.h:4, from /runner/crossbuilds/../gcc/gcc/config/netbsd-d.c:27: /runner/crossbuilds/../gcc/gcc/config/sparc/sparc-protos.h:45:47: error: use of enum ‘memmodel’ without previous declaration 45 | extern void sparc_emit_membar_for_model (enum memmodel, int, int); | ^~~~~~~~ make[2]: *** [/runner/crossbuilds/../gcc/gcc/config/t-netbsd:24: netbsd-d.o] Error 1 This patch fixes up the includes so compile succeeds. Tested using config-list.mk on all netbsd variants. OK? diff --git a/gcc/config/netbsd-d.c b/gcc/config/netbsd-d.c index 76342aacae3..5957256fa9b 100644 --- a/gcc/config/netbsd-d.c +++ b/gcc/config/netbsd-d.c @@ -21,9 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" -#include "tree.h" -#include "varasm.h" -#include "netbsd-protos.h" +#include "memmodel.h" #include "tm_p.h" #include "d/d-target.h" #include "d/d-target-def.h"