From patchwork Sun Mar 23 10:50:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Husemann X-Patchwork-Id: 332878 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 9C9D62C00BE for ; Sun, 23 Mar 2014 21:50:44 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=grHd1aGJUPisYrZaYTRz5p5IwNneLtOE3fgZPGRuNE6hsfEmQAIFI FcRApwKKurt7Fsh8Nchi+OdzencFJos7ga3EvZ9Pkul5nmjbsjFXFHExcZFyqjQB HLweyFMpHN4FSflUW+HUgZ1ejNjwQAPIES+U/9VIvf1HBi+vzmGlPo= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=IyVUi499IhoLp9BJoz8S7vVrzWE=; b=ulNCd8EzYKVfOjvtzFge 8tL5uzgd3UDpHp6Gsjhwml3R8wFURi51TNq02sc35Ld9zwCWnop8FYhi67mCFOaC Lno2OxLo+ZkVe7xBiebM1Unewe5iwadCGT0+/8/8kvjXlmBdujPfvuhC6c4FIPB0 ATCV/oLa/0wOLP9/3ab0o44= Received: (qmail 12817 invoked by alias); 23 Mar 2014 10:50:36 -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 12808 invoked by uid 89); 23 Mar 2014 10:50:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail.duskware.de Received: from mail.duskware.de (HELO mail.duskware.de) (91.199.88.144) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 23 Mar 2014 10:50:34 +0000 Received: by mail.duskware.de (Postfix, from userid 205) id 5515EA801E; Sun, 23 Mar 2014 11:50:31 +0100 (CET) Date: Sun, 23 Mar 2014 11:50:31 +0100 From: Martin Husemann To: gcc-patches@gcc.gnu.org Subject: WCONTINUED is not portable Message-ID: <20140323105031.GB18530@mail.duskware.de> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i The flag WCONTINUED for waitpid() is not portable. The attached patch just defines it to 0 if missing. Martin --- gcc/lto/lto.c.orig 2014-02-24 23:58:44.000000000 +0100 +++ gcc/lto/lto.c 2014-03-21 16:43:05.000000000 +0100 @@ -2470,6 +2470,11 @@ do_stream_out (char *temp_filename, lto_ /* Wait for forked process and signal errors. */ #ifdef HAVE_WORKING_FORK + +#ifndef WCONTINUED +#define WCONTINUED 0 +#endif + static void wait_for_child () {