From patchwork Thu Mar 2 11:12:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 734560 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 3vYqRX0tB4z9s7j for ; Thu, 2 Mar 2017 22:12:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Apysxj07"; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=koiUjI9jBwYJDuWEzfKy/NGfidGtMJq2XOuu3X/t3q/EQ2YnLA 5N25DfSMZSqUxl57EragoPWUnVxIBES6sjnzqc17KtHk8TRVBeT83vMqNdEl/Rhx A/9NKQzWjUNBu8/uaYABgscmRf0Jhio6Ndn/2xBtXXnA2MBjss2ac/oOA= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=dlTyO33HJye145GTR3eEwnNW+ig=; b=Apysxj07HGhOF3wCTEsO BDpV66WnNGLnY3bua2qEWxIJgMvKvZvCaSq+t+rky2oxHshYU8IJ9SRiszZcwvJX LedEmURQh/nJzLsptC6G/gnYDctDKHM6ggIsF24tG6txFh6eNJGA4vMhCFVL86rP O11qVIxofq2Bac225mTKYVI= Received: (qmail 92716 invoked by alias); 2 Mar 2017 11:12:40 -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 92669 invoked by uid 89); 2 Mar 2017 11:12:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=yong, Yong X-HELO: mail-pg0-f42.google.com Received: from mail-pg0-f42.google.com (HELO mail-pg0-f42.google.com) (74.125.83.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Mar 2017 11:12:38 +0000 Received: by mail-pg0-f42.google.com with SMTP id 25so31428230pgy.0 for ; Thu, 02 Mar 2017 03:12:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=Hwcl1RT3786oawu4hWqD6DOn5PzG8R7PTpkCxEBh1lg=; b=OLYOuVPwN3JFRDZAIESYRjSzfVFM93/am2iPtlEHwa49gKqJa2A9B6QKwBiUAWRaGW BQ9vazg56j+wqzKbGIPjlGPHZsJLzQnRlbnkdMUaLjfNKZe1pipXYh/usaphPEy8UOLp 8VQDgDD5pTk/fRkF+MVgdelxESyTOJSewwOat7rjZmvKZ9OCtcIUom48VWFdzfhJPR0q Aa1R0T+C9BjUxiMb1rUfhqQbYq+8afe3oi4XpKNVSD7yy79q8lh4XcWCG1sX2KxytY7V Afz2NdFeTslhtcwHf/wiheJXHJrHvzdN4zbRo+oSB3TFma8gaQFMijikSDGVXDDvmf9P TXyA== X-Gm-Message-State: AMke39nMfotAR2lH1pncGYA0e4z7PsjZTyrl0rE8/EHZ2N79juZ4IuHnZBH+sGn6Tr0w8Q== X-Received: by 10.98.113.9 with SMTP id m9mr14674303pfc.121.1488453156857; Thu, 02 Mar 2017 03:12:36 -0800 (PST) Received: from ?IPv6:2001:e68:4074:bc1f:f64d:30ff:fe63:5a5a? ([2001:e68:4074:bc1f:f64d:30ff:fe63:5a5a]) by smtp.gmail.com with ESMTPSA id a1sm16497741pgn.51.2017.03.02.03.12.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 03:12:36 -0800 (PST) To: Gcc Patch List From: JonY <10walls@gmail.com> Subject: [PATCH] Fix libgfortran build for mingw* Message-ID: <1c155813-7178-3a1c-cc2d-bdf21d6988a1@gmail.com> Date: Thu, 2 Mar 2017 11:12:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 X-IsSubscribed: yes Applied to trunk, tested with x86_64-w64-mingw32. Changelog: 2017-03-02 Jonathan Yong <10walls@gmail.com> * config/i386/gthr-win32.h: Define NOGDI before windows.h include to prevent w32api CC_NONE macro clash with libgfortran. --- trunk/libgcc/config/i386/gthr-win32.h 2017/03/02 11:00:28 245834 +++ trunk/libgcc/config/i386/gthr-win32.h 2017/03/02 11:03:23 245835 @@ -545,6 +545,7 @@ #else /* ! __GTHREAD_HIDE_WIN32API */ +#define NOGDI #include #include