]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Drop old workaround for old gcc
authorWarner Losh <imp@FreeBSD.org>
Thu, 16 Feb 2023 16:36:03 +0000 (09:36 -0700)
committerWarner Losh <imp@FreeBSD.org>
Thu, 16 Feb 2023 16:52:06 +0000 (09:52 -0700)
commita86b9ed22ece362331f44a933bbf5426a06f527a
tree1d20c55539741eb57b5e76ec354a5d2af9d7a741
parent6c9ad7b8bc7dbc17f41ddab6779548fb2728608a
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