Date: Sun, 17 Jan 2021 05:44:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252720] powerpc64 gcc toolchain missing __BYTE_ORDER__ et. al. Message-ID: <bug-252720-227-rqXdpdwfVQ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252720-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252720 --- Comment #4 from Julio Merino,+1 347 694 0576,New York City <jmmv@FreeBSD.org> --- Created attachment 221660 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=221660&action=edit Avoid __BYTE_ORDER__ I scanned the stable/12 source tree and found a bunch of files that query __BYTE_ORDER__. Most seem to have provisions for this macro not being defined, but a couple of them do not. The attached patch seems to have helped generate a new powerpc64 userland that works well. I do not know if this kind of patch is desired, or if instead sys/endian.h or something like that should be modified to define __BYTE_ORDER__ in terms of other available macros when the former is detected to be missing. It seems to me that this would be slightly more robust. There is also the question of how this problem slipped through QA into a release. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252720-227-rqXdpdwfVQ>
