From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +vXSF19Hw2PpJhcAWB0awg (envelope-from ) for ; Sat, 14 Jan 2023 19:22:55 -0500 Received: by simark.ca (Postfix, from userid 112) id 55BDA1E128; Sat, 14 Jan 2023 19:22:55 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=IcStEb0F; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 098341E112 for ; Sat, 14 Jan 2023 19:22:55 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 45A2438582B0 for ; Sun, 15 Jan 2023 00:22:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45A2438582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673742173; bh=a7pf70J+bOWBfapaF1CO9akGbApUOX9NfeQgKfL5lRw=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=IcStEb0FqlGcqZoMEpUAHZTs1IDWPYGNPNdfYxfQLNnqW1SnWOsv+B7AvGN15kPux Ikya5gTmCdl9RPqH/0T8G8hCAh0kGxVB8lpbIe7kLeclpSVtmRF1F/A+pL9z7Ts7pW edNqFlVd9pHQGtymRGLUMW8l//KAg6NfcmHdK+Nk= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 7D9703858D32 for ; Sun, 15 Jan 2023 00:22:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7D9703858D32 Received: by smtp.gentoo.org (Postfix, from userid 559) id C8280340EDF; Sun, 15 Jan 2023 00:22:29 +0000 (UTC) Date: Sat, 14 Jan 2023 19:22:29 -0500 To: Mark Wielaard Cc: gdb-patches@sourceware.org, Sam James Subject: Re: [PATCH] sim: common, microblaze, mn10300: handle signal.h defining REC_PC. Message-ID: References: <20230114232805.827713-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XusqxpXOodgkJo6J" Content-Disposition: inline In-Reply-To: <20230114232805.827713-1-mark@klomp.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --XusqxpXOodgkJo6J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15 Jan 2023 00:28, Mark Wielaard wrote: > signal.h isn't needed in microblaze and mn10300 interp.c > so don't include it. these changes are fine to merge if you want to split it out > In common sim-events.c, sim-signal.c, nrun.c and dv-sockser.c we > do need signal.h, but check whether REG_PC is defined (and then > undefine it) before including the sim headers. >=20 > It breaks the build on sparc because signal.h indirectly > includes /usr/include/sys/ucontext.h and defines REG_PC, > which is also defined in microblaze-opcm.h i don't think this is correct. none of the files quoted use REG_PC, so undefining a random symbol in them doesn't make sense. nothing in sim/common/ uses REG_PC for that matter. -mike --XusqxpXOodgkJo6J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmPDR0UACgkQQWM7n+g3 9YHvOA/+Pzf/7eU0S/16z1A8pnjOOb3oE1TDvRy2v6jl5mNWWNtafbFmDFnje3eF jkIpaTcKyFZKBhACu3QoAKXagsofnhhRXi40j2hn74zVGs7FAO5D0A8awMQKrq15 wdBR0z5LvPldO6B8+Mn8lUIdrweb+ZV56Vwr6otUJq0vb36PKvV23pY1u66HYlUV FCYXNzwGZZsE+L5qPNWLoMth2jl+wyvnSbcQPk0Zf+F7l9AHeUF1aUV0gbNDqWs0 5z05ObJdRTlbFbzIsPebM2am3BMJSy8dNhi2/oHORV6IDbpKtKYvVYT1Phg+jnve ULBNnEFCN47tI1gpRnF8SemAl/L1f4Xvyy6WCvMVHW8urw+ryPuqay+QOlGsRcO7 AY40UT0aJN95zPkapFPrJWQFYLk9v4F89HoxyJ8s+n/mqan9P85MpHozgO5EPlGT 4vBnemv6gIxg51Q+lXc8tvlfemQxvz+eZ8rWCFYhIPzmrb/T2hkAc8ObK4dqwDgj JfZfBwPmJDHkzetQMDkbJCbKa/IRukeU1IXK9wzvIew+tgZTBPOikzqn9knh1yH3 pcl7hi2C2JLJF7GW4/5/nGPIv8MfwsER1BOrlR2a3MZyEaZB/kw8LxJMfgFwowIj +mF3JRM2A2HuM8sxfqJzkBFGbnl0qUQOfIHysT19PR615YGULAs= =7nLO -----END PGP SIGNATURE----- --XusqxpXOodgkJo6J--