From nobody Tue Feb 14 16:54:11 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PGS3R2gVyz3pjB4; Tue, 14 Feb 2023 16:54:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PGS3R1rfkz3Fpr; Tue, 14 Feb 2023 16:54:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676393651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xMQe3rHaknWD8dxjRzexX/beDEK0nZ+atGec2MXZ3yY=; b=TXSXH0EY08uWfr2ZpOF12us+KdXFMLyzc+FTWAjZQQo3zzD9aFabUbJ9ko92xK+dEgNjWp ayVOTbQhJ1zWqAAEZ6X0LZg6kXCj28ouIMPbesV3k6DPQwPoWJ/mZqQnD5/z5lIw4v09Us t2JuknkGTffGSOS1Ln4Jgzc1dWgJTIX9JNMxaP+bVbg4rivAP3HlHTLVMrZbrejNUAIz1y AYJst9cnMBc8+g49wWMLAlq4RdDmuKK7nilgmpSPtYVqtDwnlMDsJDz67dYvNlulukcg+1 DMGFtzgQ2lfgyTfFq5ADG99LcBzblcvd07i/nEs4/zwFAOQytip2l4fTHmd33g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676393651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xMQe3rHaknWD8dxjRzexX/beDEK0nZ+atGec2MXZ3yY=; b=eHmN4KcQvi/i86SHc4mxRurPMFDniTb0bPmsTz58L9MQNvkP9nPKjE6gNo1zjcwxhu1509 WXpgWXOi7JA8nh5yytL1T46hLOFfNuOT5Fm0+elQ86YMME4eJCSRkonQTB+7iId7qY+ci0 +VoXj8qESBRrlUSWkdcfpcEOxc1DPr2PWrESTBDUVTdC1qEQmAd8NCcug4jKRFqrfukC+8 6nRqEczsEiqUXE6tR4morgZxhTnp66DbHLRNGMOi/B75w9ErO3J+TSRPOygmdeo6t+yf7Q ZGxNfN3EdIlLhuirtbiPYfuGhcMohr9AmTbGBq+NCap1VjqafeBFrz++nUeSPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676393651; a=rsa-sha256; cv=none; b=t4QbcOXrVTgFj6lnzdBkuLsco74ys6lzkZKoXThuzDygWoGvgGfAJNTBNmGpjUY28krp9y CkNr6gCspdOxaqx7kUMInxw4yzysUAKuSaTPe6KyJnchMIyEnLAGYUQSAa+UVrNwQWdMir 5gJUzg5NWhn5pIjd5fqaEg7qSmDuFmenIwaNFnY030tz14Q4WdVV0Mz6qawd5z9S9A5YWU wt7zmPw/wgzQbgBd2yD+npO4UpuYumAmIHekghX3AoyVUgKhpF9oOF2HKHxSUz+A8Yah0v VNacuV7ohwiDsIhiSVe0K8xxcztzG5TFz/sJ22uQTKkHT0PhoE0fzdiEe4K2OA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PGS3R0tyXz167V; Tue, 14 Feb 2023 16:54:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31EGsBYi057311; Tue, 14 Feb 2023 16:54:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31EGsBtE057310; Tue, 14 Feb 2023 16:54:11 GMT (envelope-from git) Date: Tue, 14 Feb 2023 16:54:11 GMT Message-Id: <202302141654.31EGsBtE057310@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: e35448a901aa - main - powerpc: Drop old workaround for old gcc List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e35448a901aa56aa232efbc4fe7a73a9bdac3511 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e35448a901aa56aa232efbc4fe7a73a9bdac3511 commit e35448a901aa56aa232efbc4fe7a73a9bdac3511 Author: Warner Losh AuthorDate: 2023-02-14 16:47:08 +0000 Commit: Warner Losh CommitDate: 2023-02-14 16:47:08 +0000 powerpc: Drop old workaround for old gcc Very old versions of gcc defined _BIG_ENDIAN and _LITTLE_ENDIAN. So to work around that, we undefined them here. However, that causes problems for programs that do: (and many other variations on that theme). Since this often is the result of weirdly nested includes in the ports world that are hard to unwind, drop this workaround to help more ports build out of the box. If there's still an issue here (and my testing hasn't shown it), we'll fix the issue in a brand-new way once I have a reproducer. This fixes the mesa-devel build, and others Sponsored by: Netflix Tested by: pkubaj MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D38564 --- sys/powerpc/include/endian.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/powerpc/include/endian.h b/sys/powerpc/include/endian.h index 9e28237bfd24..0fac50361632 100644 --- a/sys/powerpc/include/endian.h +++ b/sys/powerpc/include/endian.h @@ -36,18 +36,6 @@ #define _MACHINE_ENDIAN_H_ #include - -/* - * GCC defines _BIG_ENDIAN and _LITTLE_ENDIAN equal to __BIG_ENDIAN__ - * and __LITTLE_ENDIAN__ (resp). - */ -#ifdef _BIG_ENDIAN -#undef _BIG_ENDIAN -#endif -#ifdef _LITTLE_ENDIAN -#undef _LITTLE_ENDIAN -#endif - #include #endif /* !_MACHINE_ENDIAN_H_ */