From patchwork Thu Mar 1 17:22:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 144082 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 5450E1007D4 for ; Fri, 2 Mar 2012 04:22:51 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1331227372; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:Received:Received:Received:From:To:Subject: Date:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=2hniv5gHFXUdBCzytYD/ tVzSYf8=; b=MpnA2dm+GyVnQH/rUVB6wlxdq24qD+VVjWSTf4nfyxzuSmeKecaB bkOaYSG2PCKEmPcIzKNUPWNvlgSXSkk6J6eMMibKkJJ3TqAMJOp2s4oYa5iWPDka tSmEgUK6WDiBnkXa37/kFjhdY2dWerH0Ell4LJTnKFC4Ig2TQgzqAbQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:Received:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Ox7iLATkGhhwwoeN3ARp+okfV2ZEtjPRc3t0F3DB7M3lDckAotrftsD0NwYruR MYcXGtrgUWuB/Iya7uOaYOtAG6VLr6Nqj08OHM0nSfeYGoLfl8Btsv0GsgmdlF/A auO/n7pXPsZYDWm86cTruwIBPTUYRxURa3smF+UudzyPo=; Received: (qmail 691 invoked by alias); 1 Mar 2012 17:22:48 -0000 Received: (qmail 683 invoked by uid 22791); 1 Mar 2012 17:22:48 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 01 Mar 2012 17:22:34 +0000 Received: by dado14 with SMTP id o14so799609dad.20 for ; Thu, 01 Mar 2012 09:22:33 -0800 (PST) Received-SPF: pass (google.com: domain of iant@google.com designates 10.68.132.40 as permitted sender) client-ip=10.68.132.40; Authentication-Results: mr.google.com; spf=pass (google.com: domain of iant@google.com designates 10.68.132.40 as permitted sender) smtp.mail=iant@google.com; dkim=pass header.i=iant@google.com Received: from mr.google.com ([10.68.132.40]) by 10.68.132.40 with SMTP id or8mr5122004pbb.34.1330622553589 (num_hops = 1); Thu, 01 Mar 2012 09:22:33 -0800 (PST) Received: by 10.68.132.40 with SMTP id or8mr4265482pbb.34.1330622553551; Thu, 01 Mar 2012 09:22:33 -0800 (PST) Received: by 10.68.132.40 with SMTP id or8mr4265457pbb.34.1330622553432; Thu, 01 Mar 2012 09:22:33 -0800 (PST) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net. [71.133.8.30]) by mx.google.com with ESMTPS id 9sm1014944pbx.67.2012.03.01.09.22.32 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Mar 2012 09:22:32 -0800 (PST) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: libgo patch committed: Define MADV_ constants for madvise Date: Thu, 01 Mar 2012 09:22:31 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQn4/SUbXEtQioXy4gJffW9zy+30IZlQy69e4B1L1ES7Io2YMjQgNiyfPBiMnpGOdRVOcV8g+D8jYheyQl9LoIbMnpSw4jOxlhNo0TR0MOQo1S5muGppJQZf47MeCqmUUk/A1hMJAoxTN0itkhjRgo8HbEDMh/eh/wKhjglZT2wagVbU6MY= 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 This patch to libgo's mksysinfo shell script defines the MADV_ constants use by the syscall.Madvise function. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 2af6279334e7 libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Thu Mar 01 09:10:52 2012 -0800 +++ b/libgo/mksysinfo.sh Thu Mar 01 09:20:56 2012 -0800 @@ -191,6 +191,8 @@ sed -e 's/^\(const \)_\(PROT_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} grep '^const _MAP_' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(MAP_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} +grep '^const _MADV_' gen-sysinfo.go | \ + sed -e 's/^\(const \)_\(MADV_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} # Process status constants. grep '^const _W' gen-sysinfo.go |