From patchwork Thu Nov 6 15:34:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Vogt X-Patchwork-Id: 407586 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 5AC9514008C for ; Fri, 7 Nov 2014 02:34:41 +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:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=DxZOGEc5sZsnLrAZY 3GIFvi1rWeojAmmJNolwshm7z4yXzCvL6Qz1OsSs2O6Tg+/SwhEAh7lIF1gyWLZh 9bSxDD9ZFu00DIFZi3BHi77oWJUlYps6k27avW+c4KwOcXlXXpVaabe/0wNFzTKF FVVlSHRU/IRtxsEpVdJRpw7PFM= 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:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=default; bh=kOWPrGFbaGGxxwyGo/kleDy eIk0=; b=fBW8doB0LvS1oTq15PDumBNr0v06Tpbtd7/J1i1rG8l/1HUtGNSz9WQ GcWYOduGiDPsZidjAaBd9zYPwiao5YuNQZH0S7CERwYHEaqpB8JDxkiAPfsabSkg Cl4AX7GWgMKW+I5+ywwmrL0nASFLOpJ3Ut4Bpp6ZWU95EhKM1oB4= Received: (qmail 19291 invoked by alias); 6 Nov 2014 15:34:34 -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 19282 invoked by uid 89); 6 Nov 2014 15:34:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 06 Nov 2014 15:34:28 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Nov 2014 15:34:24 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 6 Nov 2014 15:34:23 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 44CB01B08074 for ; Thu, 6 Nov 2014 15:34:29 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sA6FYMqY62324736 for ; Thu, 6 Nov 2014 15:34:22 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sA6AVks8018856 for ; Thu, 6 Nov 2014 05:31:47 -0500 Received: from bl3ahm9f.de.ibm.com (dyn-9-152-212-56.boeblingen.de.ibm.com [9.152.212.56]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sA6AVkl4018842 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 6 Nov 2014 05:31:46 -0500 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1XmP4n-0003P3-Nj; Thu, 06 Nov 2014 16:34:21 +0100 Date: Thu, 6 Nov 2014 16:34:21 +0100 From: Dominik Vogt To: gcc-patches , "gofrontend-dev@googlegroups.com" Cc: Ian Taylor , Rainer Orth Subject: Re: [gofrontend-dev] [PATCH 1/4] Gccgo port to s390[x] -- part II Message-ID: <20141106153421.GA9829@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: gcc-patches , "gofrontend-dev@googlegroups.com" , Ian Taylor , Rainer Orth References: <20141104121533.GB19710@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14110615-0005-0000-0000-000001F8FD12 On Thu, Nov 06, 2014 at 03:02:13PM +0100, Rainer Orth wrote: > Ian Taylor writes: > > Committed patch 0001 with various formatting fixes, as attached. > > Unfortunately, the mksysinfo.sh part broke Solaris bootstrap: there's no > type _ucred in gen-sysinfo.go, so the grep in upcase_fields fails. Due > to the use of set -e, the whole script aborts. The attached patch fixes the problem. > It seems something changed again in godump within the last few days, > making this patch > > https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00080.html > > unnecessary. Yes. :-) Ciao Dominik ^_^ ^_^ From 064f524f1d24d60a2d70e9b3436d1bf2fef6c9ca Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Thu, 6 Nov 2014 16:31:39 +0100 Subject: [PATCH] libgo: mksysinfo.sh tolerates missing structures. --- libgo/mksysinfo.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index a174e64..ddfa8bb 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -475,9 +475,9 @@ if test "$regs" == ""; then regs=`grep '^type __user_regs_struct struct' gen-sysinfo.go || true` if test "$regs" != ""; then # Substructures of __user_regs_struct on s390 - upcase_fields "__user_psw_struct" "PtracePsw" >> ${OUT} - upcase_fields "__user_fpregs_struct" "PtraceFpregs" >> ${OUT} - upcase_fields "__user_per_struct" "PtracePer" >> ${OUT} + upcase_fields "__user_psw_struct" "PtracePsw" >> ${OUT} || true + upcase_fields "__user_fpregs_struct" "PtraceFpregs" >> ${OUT} || true + upcase_fields "__user_per_struct" "PtracePer" >> ${OUT} || true fi fi if test "$regs" != ""; then @@ -746,7 +746,7 @@ grep '^const _SCM_' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(SCM_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} # The ucred struct. -upcase_fields "_ucred" "Ucred" >> ${OUT} +upcase_fields "_ucred" "Ucred" >> ${OUT} || true # The ip_mreq struct. grep '^type _ip_mreq ' gen-sysinfo.go | \ -- 1.8.4.2