From patchwork Thu Dec 19 00:01:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 36953 Received: (qmail 120237 invoked by alias); 19 Dec 2019 00:01:22 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 119709 invoked by uid 89); 19 Dec 2019 00:01:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qv1-f73.google.com Received: from mail-qv1-f73.google.com (HELO mail-qv1-f73.google.com) (209.85.219.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Dec 2019 00:01:16 +0000 Received: by mail-qv1-f73.google.com with SMTP id r9so2523915qvs.19 for ; Wed, 18 Dec 2019 16:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=xYwGx9MqngXy58zCl+rm4/syhGcUaqrUBm80HiTWeFo=; b=W2Eb5+1iQnnQT5kEfLy1YBlmuI8gX1kdPWhDDnsELYQ0SHH1VlvUbCCyEqqu/pBkGC tMBsURN9w2iL5mbvSC1w0z4tTmWCCkJLRA6Ah/P3MnSC8TwRFCBQXhFp8hBuK1/2HtLq kYQZ6HaVAU73alOmJYxBHtH0MhBrjcnhbMLUZ8mf9nlVpGcqeI5b5tlREkZr+lVDq4k2 Av0BHFVkysr03uCqbIsLzdHAWJXizyPAB4utD9MoBghxm6GfxSAeW+nUU1yhWxr62cDd m36J39mvKnhYRDyTl3LB5lK4fVRfqWmbVxek4U8l9slSMKe9RhhZEBV+fxWnZsvUDJef pyyg== Date: Wed, 18 Dec 2019 18:01:01 -0600 In-Reply-To: <20191219000103.36667-1-cbiesinger@google.com> Message-Id: <20191219000103.36667-3-cbiesinger@google.com> Mime-Version: 1.0 References: <20191219000103.36667-1-cbiesinger@google.com> Subject: [PATCH 1/3] Undef REG_Y in s12z.h, it may be defined in a system header X-Patchwork-Original-From: "Christian Biesinger via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger X-IsSubscribed: yes This breaks the compile on Solaris with enable-targets=all. include/ChangeLog: 2019-12-18 Christian Biesinger * opcode/s12z.h: Undef REG_Y. Change-Id: I028b2663affce50d6ca37ccdc301bde8de80d45c --- include/opcode/s12z.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/opcode/s12z.h b/include/opcode/s12z.h index 7e38ac5e1c..717b4a9cbb 100644 --- a/include/opcode/s12z.h +++ b/include/opcode/s12z.h @@ -20,6 +20,10 @@ struct reg extern const struct reg registers[S12Z_N_REGISTERS]; +/* Solaris defines REG_Y in sys/regset.h; undef it here to avoid + breaking compilation when this target is enabled. */ +#undef REG_Y + enum { REG_D2 = 0, REG_D3,