From patchwork Thu Jun 9 21:10:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 99814 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]) by ozlabs.org (Postfix) with SMTP id 0B91DB6FFD for ; Fri, 10 Jun 2011 07:11:11 +1000 (EST) Received: (qmail 17848 invoked by alias); 9 Jun 2011 21:11:08 -0000 Received: (qmail 17840 invoked by uid 22791); 9 Jun 2011 21:11:08 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 21:10:53 +0000 Received: by qwh5 with SMTP id 5so1040384qwh.20 for ; Thu, 09 Jun 2011 14:10:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.26.130 with SMTP id e2mr924332qcc.241.1307653851615; Thu, 09 Jun 2011 14:10:51 -0700 (PDT) Received: by 10.229.98.146 with HTTP; Thu, 9 Jun 2011 14:10:51 -0700 (PDT) Date: Thu, 9 Jun 2011 23:10:51 +0200 Message-ID: Subject: [patch libgcc committed]: Fix missing include of windows.h for mingw targets From: Kai Tietz To: GCC Patches Cc: Rainer Orth X-IsSubscribed: yes 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 Hello, by recent changes about HAVE_ENABLE_EXECUTE_STACK and moving code into libgcc2.c the necessary header include of windows.h was removed for config/i386/mingw32.h for LIBGCC2 case. This header is necessary for trampoline code in libgcc2.c, as for mingw target platform API is used. ChangeLog * libgcc2.c (L_trampoline): Include windows.h for mingw targets. Patch tested and applied at revision 174860. Regards, Kai Index: libgcc2.c =================================================================== --- libgcc2.c (revision 174854) +++ libgcc2.c (working copy) @@ -2032,6 +2032,7 @@ /* Jump to a trampoline, loading the static chain address. */ #if defined(WINNT) && ! defined(__CYGWIN__) +#include int getpagesize (void); int mprotect (char *,int, int);