From patchwork Wed Sep 28 10:30:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 116747 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 C8762B6F7D for ; Wed, 28 Sep 2011 20:30:53 +1000 (EST) Received: (qmail 2989 invoked by alias); 28 Sep 2011 10:30:51 -0000 Received: (qmail 2981 invoked by uid 22791); 28 Sep 2011 10:30:50 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Sep 2011 10:30:36 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 6B98A91C; Wed, 28 Sep 2011 12:30:32 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A-G+X3kjXf50; Wed, 28 Sep 2011 12:30:30 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 6451091B; Wed, 28 Sep 2011 12:30:30 +0200 (CEST) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id p8SAUTMA004216; Wed, 28 Sep 2011 12:30:29 +0200 (MEST) From: Rainer Orth To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Re: Go patch committed: Update libgo to Go release r60 References: Date: Wed, 28 Sep 2011 12:30:29 +0200 In-Reply-To: (Ian Lance Taylor's message of "Tue, 27 Sep 2011 06:16:48 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) 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 Ian Lance Taylor writes: > Rainer Orth writes: > >> Solaris 8 and 9 suffer from the same problem. The following patch >> allowed the bootstrap to complete. An IRIX bootstrap is currently >> running, but will take some time to complete. >> >> Rainer >> >> >> 2011-09-23 Rainer Orth >> >> * mksysinfo.sh: Provide TIOCSCTTY if missing. > > Thanks. I committed this patch, though I moved the new lines farther > down in the script next to the handling of the ioctl constants. Thanks, I'd missed that. It turned out that IRIX 6 needs one more change to return to bootstrap land: only defines TIOCNOTTY if !_XOPEN_SOURCE, which we need for other stuff (cf. configure.ac). I've cheated and use instead, which doesn't have this check. With this patch, a Go-only IRIX 6.5 bootstrap completed successfully. Rainer 2011-09-28 Rainer Orth * mksysinfo.sh [__sgi__]: Include . # HG changeset patch # Parent 4530aeaf12a2b1576a7bf67de9cf5569719107c6 Provide TIOCNOTTY on IRIX 6 diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -36,9 +36,12 @@ cat > sysinfo.c < /* needs u_char/u_short, but is only included by if _SGIAPI (i.e. _SGI_SOURCE - && !_XOPEN_SOURCE. */ + && !_XOPEN_SOURCE. + only defines TIOCNOTTY if !_XOPEN_SOURCE, while + does so unconditionally. */ #ifdef __sgi__ #include +#include #endif #include #include