From nobody Sun Feb 19 03:16:39 2023 X-Original-To: dev-commits-src-branches@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 4PK9gr0y08z3sb1l; Sun, 19 Feb 2023 03:16:40 +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 4PK9gq658vz4KdW; Sun, 19 Feb 2023 03:16:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676776599; 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=bhlG3v3Q3GSc17LFsV6HeAOAjUd/DdVNJ8byEeRuDac=; b=Zj/GFxkB47PtcVyTqnK1T0UZ3MHJNM+rKNY8bFA3VcDkFeewDbDl89L7KEuWhqKtr0KlKL dF9K2b7+4KGXattSR1RFgj/6Sga8LgL5hz6LeFce5VM/alHUkoSTf6SDXN/EYttMGHPtMS uZbVUofxt1QpAAKGrtv6BeAU8JGVszbobLA2qRNPYdEBuiqsdAMZT2rSl0nthWKROxCkPD tsKHqWcAmGNRZ+keQ2aduMx4TTUjGlxJQoRNHja3TSkUTyCExRy+q8hIeWIdHfRvxL1Bwg P/s5Pni7BU2fS7iiE7O3NIig9JEyfwzo6XPGnN/LWV7456qNfrqwaM5cXzg4hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676776599; 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=bhlG3v3Q3GSc17LFsV6HeAOAjUd/DdVNJ8byEeRuDac=; b=j70BeYBhi/eBc+cRWFC3HQgsWlWsd9zgMezzM+239jAdta08YTTuPiPusKp8Yb9pxDncbx JZD9YJ4DHaF5C2/c9tbYPdkkkkDRlITm5RRq82mrRhjknh7k5IQRs+/ZmYZ56nBAM4IWk3 VLEpfobajsbzL/S5u7Nqw0YpPaGwuA/7E+W2tGR92pWEdIYojB1FGKL5JoSW1I/kaOfhHE Rh3gNbby9xHxl+WtxYmgVUCyCDciAZle895wXRoEqnP81LVjIBKRv/ARmfNYcqc+42whPy 22ww3NFoSf5/8jnXHtYlHqGzbywbJfE1JkyfEpVqZnMDJyT9BxflDCjB7lPOiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676776599; a=rsa-sha256; cv=none; b=BvXD7V0BQ3vEquQj8IWHIKwHwh3NFHMIDZOHy3t0MFWqaZdar6J7FdAxyo03eR01Zr2FVN 3C0MaZu2Mp3ISTcdj3hIo+8/n73rFPQwKfhKOwmVVS1GRoAHsc7p++dtv1J0SMpHih7vsi 5yv+NCTeeDK1wPB3ZW048+20AY18/NKGWfUmYnNF/+Be3wXN6TTieIht47KJZeLzWxA7u2 X0Ngvb9xSkGTi1bgr53SgI47n5btNI9L9wrh/i4tLpC6uIuhXfg/6BwH9azWq0C6kJX2sy JZhtjrehAGi0VXtRlCBO1WNGalPBG5bUTC51VbRPVjG0jeJprRPJNr5Bjfebhw== 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 4PK9gq5CBVzmvg; Sun, 19 Feb 2023 03:16:39 +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 31J3Gd6O084002; Sun, 19 Feb 2023 03:16:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31J3GdQA084001; Sun, 19 Feb 2023 03:16:39 GMT (envelope-from git) Date: Sun, 19 Feb 2023 03:16:39 GMT Message-Id: <202302190316.31J3GdQA084001@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: 0b69409270e4 - releng/13.2 - powerpc: Drop old workaround for old gcc List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 0b69409270e47fc90fa7141098c2621e4df1c45c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.2 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0b69409270e47fc90fa7141098c2621e4df1c45c commit 0b69409270e47fc90fa7141098c2621e4df1c45c Author: Warner Losh AuthorDate: 2023-02-16 16:58:33 +0000 Commit: Warner Losh CommitDate: 2023-02-19 03:14:24 +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 Approved by: re (cperciva) (cherry picked from commit e35448a901aa56aa232efbc4fe7a73a9bdac3511) (cherry picked from commit a86b9ed22ece362331f44a933bbf5426a06f527a) --- 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_ */