From nobody Thu Feb 16 16:54:47 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 4PHgzC5NjNz3r9wk; Thu, 16 Feb 2023 16:54:47 +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 4PHgzC4x3Rz46JL; Thu, 16 Feb 2023 16:54:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676566487; 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=JPCe8fIDSw0avi3CTQhS9HOPDaWZZFXZgxIjlW9FRYs=; b=Ju+AkCQ0/MQsd19M9lQ5TRXyn/O/UYWtmITPlRfNwd6cthQwLtVhZ0ou8ADEv75tDpvLLv VHn24W8/7uQ8Vy1NFcNhVNS1fkG6SDEaEu5sqabOjH204cBCjr0f3pL5+5/NlyFMptc6Qw 9V8dV1AAeBKOq40WqC/vOc0OU8sxB1rvCgHgvd/z9TjHYoSlDtF44QcckVL7XaYAyPm3k4 T2u+7UZsnZjTfRa95dZOzjj7p1O/NKYCs36PKUOXhdkTAJdPmI7CmY0XQXLakeweh43aTT C7srep2Oob5zKpMZI+ynAQrbt4HBir/c6Ywsi6GVPuCOEZDd7N6DcXngapNyAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676566487; 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=JPCe8fIDSw0avi3CTQhS9HOPDaWZZFXZgxIjlW9FRYs=; b=RHmuEZ36KzeNuvbnDC0u1gr+pXAj+TXOsBJiqFfWSfvxbcIdATsFHVexv0gcVL1Tl/cdcU iqkdmJNKReL+gPcgu+AOWjjTRxT8Lu/jCJOVhe2IEuk78gFOhLOuFiIXbujokvPv23uG1e fkLvv8FRUH5T+WEVz90ijNgYlYxkShp4gohmH0yOqr1MI3VDdNGD2HBE9AKtuy/xkxhupD vXwFUe6aDH8Fpa5AYAngEDAOjuNc8M8hMXG+nOv00rmfCHOj1y4KsPGxK0HBBRWDNt/Na9 PFlR0UOL75aMf24vX8tWbs3J6zCoOaqzD1CyScahZV1uL6OEhGOSPkusg+B6Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676566487; a=rsa-sha256; cv=none; b=wJDT3qA8rYVxdLTAb1Sy02pzmjpuYUHsOZOZXa+5TJZkOPkD/i08Y3/yqNVF0j1UB1VUrI kNpagWx1DDd0eHdpKQvqB4TW+HFKcY97bEH1gYjf5uP9vrXP9pTs0tDAr2SRXbPzVJChdV vzKI7pdhgt0OLNdjm91HhRgl1MO3SWE3uXAQEed4BEPSngNqGFlYW2uCdsGj6KcU9XIIxJ vkaSzy132cliswuj0nHfdm9hGnZ4tp/7nwgkQKdLzne74oj4xfe8LrrikGdE66097uz4MI PGa/OJhsbbdyXh7Gny1A0vUDAXGeSOFYEEzh6uSBapCpoHulo+anbHjCKo5iXw== 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 4PHgzC3tVSz19MR; Thu, 16 Feb 2023 16:54:47 +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 31GGsldu085709; Thu, 16 Feb 2023 16:54:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GGslBY085708; Thu, 16 Feb 2023 16:54:47 GMT (envelope-from git) Date: Thu, 16 Feb 2023 16:54:47 GMT Message-Id: <202302161654.31GGslBY085708@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: a86b9ed22ece - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: a86b9ed22ece362331f44a933bbf5426a06f527a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a86b9ed22ece362331f44a933bbf5426a06f527a commit a86b9ed22ece362331f44a933bbf5426a06f527a Author: Warner Losh AuthorDate: 2023-02-16 16:36:03 +0000 Commit: Warner Losh CommitDate: 2023-02-16 16:52:06 +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 (cherry picked from commit e35448a901aa56aa232efbc4fe7a73a9bdac3511) --- 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_ */