From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27536 invoked by alias); 31 May 2011 18:16:08 -0000 Received: (qmail 27527 invoked by uid 22791); 31 May 2011 18:16:08 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,TW_ZJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 May 2011 18:15:49 +0000 Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id p4VIFg0U000415 for ; Tue, 31 May 2011 11:15:42 -0700 Received: from pwj9 (pwj9.prod.google.com [10.241.219.73]) by hpaq5.eem.corp.google.com with ESMTP id p4VIFaa8010280 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 31 May 2011 11:15:37 -0700 Received: by pwj9 with SMTP id 9so2938821pwj.34 for ; Tue, 31 May 2011 11:15:35 -0700 (PDT) Received: by 10.68.65.116 with SMTP id w20mr2315801pbs.383.1306865735583; Tue, 31 May 2011 11:15:35 -0700 (PDT) Received: from coign.google.com (dhcp-172-18-113-207.mtv.corp.google.com [172.18.113.207]) by mx.google.com with ESMTPS id k4sm223894pbl.91.2011.05.31.11.15.34 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2011 11:15:34 -0700 (PDT) From: Ian Lance Taylor To: Uros Bizjak Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Re: [RFC PATCH, go]: Port to ALPHA arch References: Date: Tue, 31 May 2011 19:50:00 -0000 In-Reply-To: (Uros Bizjak's message of "Sun, 3 Apr 2011 19:46:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg02464.txt.bz2 Uros Bizjak writes: > On Sat, Apr 2, 2011 at 1:09 AM, Ian Lance Taylor wrote: >> On Wed, Mar 30, 2011 at 12:58 PM, Uros Bizjak wrote: >>> >>> Attached ports go to ALPHA architecture. >> >> Thanks! >> >> Committed. >> >> >>> b) alpha doesn't define "struct user_regs_struct" from which "type >>> PtraceRegs" is derived. I have manually created PtraceRegs from >>> pt_regs structure and patched generated libgo/sysinfo.go in build >>> directory after the build broke. However - the comment from sys/user.h >>> says that this file is for GDB and GDB only... >> >> libgo uses it to support ptrace, which in effect is the same as what >> gdb does. =C2=A0If mksysinfo.sh is unable to provide any definition for = the >> structure, then the choices are either to patch up mksysinfo.sh so >> that it works, or to simply define the structure in >> libgo/syscalls/syscall_linux_alpha.go. =C2=A0it is unlikely to change so >> the latter seems acceptable if patching mksysinfo is too hard. > > Attached patch implements this suggestion and builds libgo without proble= ms. Committed. Thanks. Ian