Skip site navigation (1)Skip section navigation (2)
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/>
References:  <bug-252720-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252720

--- Comment #4 from Julio Merino,+1 347 694 0576,New York City <jmmv@FreeBS=
D.org> ---
Created attachment 221660
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D221660&action=
=3Dedit
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 defin=
ed,
but a couple of them do not. The attached patch seems to have helped genera=
te 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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252720-227-rqXdpdwfVQ>