From patchwork Sun Jan 15 16:28:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 136199 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 7D423B6F65 for ; Mon, 16 Jan 2012 03:28:20 +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=1327249701; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=PR/n8vCKwdWI6+iWxThXfLun9Nk=; b=LkEAjNQvNyTE8nm FzmgN4Qp7sHLF9UVfOgoCtORRy3Q0aCIBha6R/mZtjePxgln4fT2Qz3bOmw1PKKS UkaPo+YeULvwHjeDXJUwUPLj9dgQGY1D8LB8gCtQB8clQSmT8Lqij13qli99WteP 5y672ahQW+kDF6kG9hpHms7NaQ7E= 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:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=RUK10z1la/EoI64XhUKiHRn5LVB/0WWXg78/XdlpZTmmiIjCGEfSi21bU/LOT0 qIujT31QMCuTq49bQfeAvs7V2bPCUsISyjrYeXocKbXNV51JohamNB1fu3jQqRv+ XgNFoK0UD2seevgeX+PDhPL7Mm8osx1+jt4dOaA8iN+Kg=; Received: (qmail 5632 invoked by alias); 15 Jan 2012 16:28:16 -0000 Received: (qmail 5591 invoked by uid 22791); 15 Jan 2012 16:28:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gx0-f175.google.com (HELO mail-gx0-f175.google.com) (209.85.161.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Jan 2012 16:28:00 +0000 Received: by ggno1 with SMTP id o1so2418406ggn.20 for ; Sun, 15 Jan 2012 08:28:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.187.97 with SMTP id x61mr11673143yhm.97.1326644880079; Sun, 15 Jan 2012 08:28:00 -0800 (PST) Received: by 10.146.124.2 with HTTP; Sun, 15 Jan 2012 08:28:00 -0800 (PST) In-Reply-To: References: Date: Sun, 15 Jan 2012 17:28:00 +0100 Message-ID: Subject: Re: libgo patch committed: Update to weekly.2011-12-22 From: Uros Bizjak To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com 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 On Sat, Jan 14, 2012 at 12:18 AM, Ian Lance Taylor wrote: >> This is the same problem with -fdump-go-spec we discussed a couple of >> months ago [1]. In short, alpha linux doesn't just include >> with hardcoded numbers in asm/ioctls.h, but >> builds ioctl arguments as shown in [1]. Probably, this is the right >> way ... > > Oh yeah. > > I think I've worked out a way to handle this kind of thing.  With luck > this patch will fix the problem.  Bootstrapped on > x86_64-unknown-linux-gnu, although that doesn't really test it properly. > Committed to mainline.  Please let me know if this helps. The library compiles OK, with following small patch: --cut here-- --cut here-- Thanks, Uros. Index: mksysinfo.sh =================================================================== --- mksysinfo.sh (revision 183192) +++ mksysinfo.sh (working copy) @@ -538,7 +538,7 @@ # We need TIOCGWINSZ. if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then if grep '^const _TIOCGWINSZ_val' ${OUT} >/dev/null 2>&1; then - echo 'const TIOCGWINSZ = TIOCGWINSZ_val' >> ${OUT} + echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT} fi fi