From patchwork Sat Aug 28 02:30:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 62887 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 B9A15B70AE for ; Sat, 28 Aug 2010 12:30:25 +1000 (EST) Received: (qmail 30126 invoked by alias); 28 Aug 2010 02:30:23 -0000 Received: (qmail 30118 invoked by uid 22791); 28 Aug 2010 02:30:23 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 Aug 2010 02:30:18 +0000 Received: from hpaq7.eem.corp.google.com (hpaq7.eem.corp.google.com [172.25.149.7]) by smtp-out.google.com with ESMTP id o7S2UGPt010123 for ; Fri, 27 Aug 2010 19:30:16 -0700 Received: from pzk2 (pzk2.prod.google.com [10.243.19.130]) by hpaq7.eem.corp.google.com with ESMTP id o7S2UEKO007886 for ; Fri, 27 Aug 2010 19:30:14 -0700 Received: by pzk2 with SMTP id 2so1371831pzk.6 for ; Fri, 27 Aug 2010 19:30:13 -0700 (PDT) Received: by 10.114.52.1 with SMTP id z1mr1253964waz.63.1282962613836; Fri, 27 Aug 2010 19:30:13 -0700 (PDT) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id c24sm7863101wam.7.2010.08.27.19.30.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 19:30:13 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: [gccgo] Remove i386 hack for user regs structure Date: Fri, 27 Aug 2010 19:30:11 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The code which reads the system header files had a i386-specific hack for the user regs structure. This is no longer necessary due to the changes which came in in the recent libgo update. Committed to gccgo branch. Ian diff -r 8b49bce66221 libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Fri Aug 27 19:27:13 2010 -0700 +++ b/libgo/mksysinfo.sh Fri Aug 27 19:28:10 2010 -0700 @@ -212,8 +212,6 @@ if test "$regs" != ""; then regs=`echo $regs | sed -e 's/type _user_regs_struct struct //'` regs=`echo $regs | sed -e 's/\([^a-zA-Z0-9_]*\)\([a-zA-Z0-9_]\)\([a-zA-Z0-9_]* [^;]*;\)/\1\U\2\E\3/g'` - # FIXME: x86 specific. - regs=`echo $regs | sed -e 's/X\([a-z]\)\([a-z]\) int32/ \U\1\E\2 uint16; X\1\2 uint16/g'` echo "type PtraceRegs struct $regs" >> ${OUT} fi