From patchwork Tue Dec 30 19:33:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lynn A. Boger" X-Patchwork-Id: 424684 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 441021400DE for ; Wed, 31 Dec 2014 06:34:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=JXTY2iJA5wZBTPz5bWIrm8iK/xiUxukwqGZFsy/TI+c9ql qgG66ff20u5F3wX1O5wl6fItBBWOGJ85YNRh9uouMmei5CKupm0PlDutQcwuNXB+ rfichwXoyceVxrfeVzrEEP6lOUQpPRzAwh/paE612Pkr23CgYtiPyUe5MrV/o= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=gDdkrApEP1zF0E+lpOC6EwgYnEo=; b=IZnxszJwOMrFiVFmKU9P ywCJMuPGEzId6a9bX0F5V0keS7n1OSIx3u1y/EVSIoInj8oS2JoxUhJrw43ND1zH CrnDs0cIwQyMBG2VuNBcNPzgb2glKg2i/e7CP9Tdp/o8eRG9u2uEBLs3aUkZkpaw x0IPOwhIKzu5WlXg9PfRW0E= Received: (qmail 19998 invoked by alias); 30 Dec 2014 19:33:57 -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 19989 invoked by uid 89); 30 Dec 2014 19:33:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e7.ny.us.ibm.com Received: from e7.ny.us.ibm.com (HELO e7.ny.us.ibm.com) (32.97.182.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 30 Dec 2014 19:33:53 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Dec 2014 14:33:51 -0500 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Dec 2014 14:33:48 -0500 Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 74E6138C803B for ; Tue, 30 Dec 2014 14:33:48 -0500 (EST) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBUJXmZj28115164 for ; Tue, 30 Dec 2014 19:33:48 GMT Received: from d01av01.pok.ibm.com (localhost [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBUJXmfu031087 for ; Tue, 30 Dec 2014 14:33:48 -0500 Received: from oc2602623110.ibm.com (oc2602623110.ibm.com.rchland.ibm.com [9.10.86.28]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBUJXltc031058; Tue, 30 Dec 2014 14:33:47 -0500 Message-ID: <54A2FE1B.3010401@linux.vnet.ibm.com> Date: Tue, 30 Dec 2014 13:33:47 -0600 From: "Lynn A. Boger" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: gcc-patches , "gofrontend-dev@googlegroups.com" , Ian Taylor Subject: [PATCH, libgo] Backport fix for compiler flags in mksysinfo.sh to gcc 4.9 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14123019-0037-0000-0000-0000003C56ED X-IsSubscribed: yes Hi, Please backport the change from https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00713.html to gcc 4.9. 2014-12-30 Lynn Boger * libgo/mksysinfo.sh: Add the same compiler flags used by configure to detect whether off64_t is present when generating the go structures for C types. Otherwise the go type for off64_t might not be generated. Index: libgo/mksysinfo.sh =================================================================== --- libgo/mksysinfo.sh (revision 218817) +++ libgo/mksysinfo.sh (working copy) @@ -204,8 +204,10 @@ enum { }; EOF -${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c +${CC} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \ + -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c + echo 'package syscall' > ${OUT} echo 'import "unsafe"' >> ${OUT} echo 'type _ unsafe.Pointer' >> ${OUT}