From patchwork Sat Jun 24 07:04:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 780334 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 3wvmY96M6nz9s3w for ; Sat, 24 Jun 2017 17:05:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="YVQppVjQ"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; q=dns; s=default; b=w89zWr2qtH8vnPDy JHrE1f4oIXe5KVAWgEOsK7ipzak4ZbZXNytd0BeFfVnPFxEBGhCopF9W5Y1h1Y0V NM5xzuuXCdipTubDq3ZrUlkJtNXuN+M89r2VXjhiceGUhRBoA+mGlt974rbfCvXo PYayBYbQ6zWO8kO2bWpxkvkJ46Q= 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:from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=default; bh=s4Fg8KoN7bJPkYiMnkwgFp NFYqM=; b=YVQppVjQ14DMQDZFu8BBziAt/RzDwEozY5xlBtEXBTpHXezO7mmQrx Fj8esVQNdnxZhgUBCq7AUMd+DVDGymSbGCFFRWDC7EQm9J8q5cjDc+azGDlbH4V3 mtrSWos5DzYXDwv8BGkcPbZZ/K59iCVHpL8zIRmtvlmCUrJw/GBrA= Received: (qmail 60390 invoked by alias); 24 Jun 2017 07:05:07 -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 60366 invoked by uid 89); 24 Jun 2017 07:05:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1326 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 24 Jun 2017 07:05:05 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1E433AAB9; Sat, 24 Jun 2017 07:05:03 +0000 (UTC) From: Andreas Schwab To: Ian Lance Taylor Cc: James Cowgill , gcc-patches , "gofrontend-dev\@googlegroups.com" Subject: Re: libgo patch committed: Fix ptrace implementation on MIPS References: <63237b8e-cb25-7bed-2958-75ecd609ee54@imgtec.com> X-Yow: Sorry, wrong ZIP CODE!! Date: Sat, 24 Jun 2017 09:04:57 +0200 In-Reply-To: (Ian Lance Taylor's message of "Fri, 23 Jun 2017 06:52:05 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 On Jun 23 2017, Ian Lance Taylor wrote: > Andreas, can we avoid the problem for earlier glibc versions with a > patch like the appended? > > Ian > > diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c > index a1afc7d1..80407443 100644 > --- a/libgo/sysinfo.c > +++ b/libgo/sysinfo.c > @@ -38,7 +38,10 @@ > #if defined(HAVE_NETINET_IF_ETHER_H) > #include > #endif > +/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 . */ > +#define ia64_fpreg pt_ia64_fpreg > #include > +#undef ia64_fpreg That doesn't work, but this does: Andreas. diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index a1afc7d119c..1ba27b1a093 100644 --- a/libgo/sysinfo.c +++ b/libgo/sysinfo.c @@ -103,7 +103,12 @@ #include #endif #if defined(HAVE_LINUX_PTRACE_H) +/* Avoid https://sourceware.org/bugzilla/show_bug.cgi?id=762 . */ +#define ia64_fpreg pt_ia64_fpreg +#define pt_all_user_regs pt_ia64_all_user_regs #include +#undef ia64_fpreg +#undef pt_all_user_regs #endif #if defined(HAVE_LINUX_RTNETLINK_H) #include