From patchwork Fri Jan 13 23:03:11 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: 136035 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 14A4BB6EE8 for ; Sat, 14 Jan 2012 10:03:34 +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=1327100616; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To: 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=UfbaNW5HRSomfqVrj6PYRvVWm+Y=; b=Z26Aeq22VuSTyRQKMcBZC4lpGby8JOPPlPaCpEI7iCzj0h2wHb4DsvyaeBXFFg ge3Ps8UJlHPN/xNOngJZyGigqdUOmvbZ2sirdUJ4W4PnxXhDdoOmaj0c4XrWceVZ ggRpWd4lYoWq6svP/b4ENnhU4CJP6BMrVt8OCz5blVs+k= 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:Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=i2il6IKYp23txST3X/JHyVgsWIyPAv65AB2rNfGgtfbA3geKVvqK/WAjZDUCzp 5E22UhAbmuUlMIeeA93rru8VjGI/ebmjCpyzgc4kgmoyAQGmDKo1Lh80+4r9iorT 8pjB+KJwZCMlitl3sTbTs0fY62Vr3pAKngmR/qitxyyl4=; Received: (qmail 1002 invoked by alias); 13 Jan 2012 23:03:29 -0000 Received: (qmail 991 invoked by uid 22791); 13 Jan 2012 23:03:27 -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-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Jan 2012 23:03:14 +0000 Received: by iafi7 with SMTP id i7so5340818iaf.20 for ; Fri, 13 Jan 2012 15:03:13 -0800 (PST) Received: by 10.50.192.162 with SMTP id hh2mr260768igc.8.1326495793877; Fri, 13 Jan 2012 15:03:13 -0800 (PST) Received: by 10.50.192.162 with SMTP id hh2mr260752igc.8.1326495793767; Fri, 13 Jan 2012 15:03:13 -0800 (PST) Received: from coign.google.com ([72.14.225.65]) by mx.google.com with ESMTPS id xu6sm16981077igb.7.2012.01.13.15.03.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jan 2012 15:03:12 -0800 (PST) From: Ian Lance Taylor To: Rainer Orth Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Re: libgo patch committed: Update to weekly.2011-12-22 References: Date: Fri, 13 Jan 2012 15:03:11 -0800 In-Reply-To: (Rainer Orth's message of "Fri, 13 Jan 2012 19:23:07 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 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 Rainer Orth writes: > Ian Lance Taylor writes: > >> I have committed a patch to libgo to update it to the weekly.2011-12-22 >> release. As usual I am not including all the changes here, only the >> ones to files which are specific to gccgo. Bootstrapped and ran Go >> testsuite on x86_64-unknown-linux-gnu. Committed to mainline. > > This also broke bootstrap on x86_64-unknown-linux-gnu (CentOS 5.5): > > /vol/gcc/src/hg/trunk/local/libgo/go/net/fd_linux.go:40:46: error: reference to undefined identifier 'syscall.EPOLL_CLOEXEC' Thanks. Fixed like so. Bootstrapped on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r 5623a1911326 libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Thu Jan 12 21:00:14 2012 -0800 +++ b/libgo/mksysinfo.sh Fri Jan 13 15:01:55 2012 -0800 @@ -193,10 +193,13 @@ # epoll constants. grep '^const _EPOLL' gen-sysinfo.go | sed -e 's/^\(const \)_\(EPOLL[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} -# Make sure EPOLLRDHUP is defined. +# Make sure EPOLLRDHUP and EPOLL_CLOEXEC are defined. if ! grep '^const EPOLLRDHUP' ${OUT} >/dev/null 2>&1; then echo "const EPOLLRDHUP = 0x2000" >> ${OUT} fi +if ! grep '^const EPOLL_CLOEXEC' ${OUT} >/dev/null 2>&1; then + echo "const EPOLL_CLOEXEC = 02000000" >> ${OUT} +fi # Ptrace constants. grep '^const _PTRACE' gen-sysinfo.go |