[PATCH] gprofng: need to know that experiment was created on big-endian machine
Alice Carlotti
alice.carlotti@arm.com
Thu Jun 26 13:58:25 GMT 2025
On Wed, Jun 25, 2025 at 09:27:39PM -0700, Vladimir Mezentsev via Binutils wrote:
> From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
...
> diff --git a/gprofng/common/config.h.in b/gprofng/common/config.h.in
> index f8484f238fd..aabb043957a 100644
> --- a/gprofng/common/config.h.in
> +++ b/gprofng/common/config.h.in
> @@ -1,5 +1,8 @@
> /* common/config.h.in. Generated from configure.ac by autoheader. */
>
> +/* Define if building universal (internal helper macro) */
> +#undef AC_APPLE_UNIVERSAL_BUILD
> +
> /* Enable debugging output. */
> #undef DEBUG
>
> @@ -109,6 +112,18 @@
> /* Version number of package */
> #undef VERSION
>
> +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
> + significant byte first (like Motorola and SPARC, unlike Intel). */
> +#if defined AC_APPLE_UNIVERSAL_BUILD
> +# if defined __BIG_ENDIAN__
> +# define WORDS_BIGENDIAN 1
> +# endif
> +#else
> +# ifndef WORDS_BIGENDIAN
> +# undef WORDS_BIGENDIAN
^ These two lines look wrong.
> +# endif
> +#endif
> +
> /* Define to 1 if on MINIX. */
> #undef _MINIX
>
More information about the Binutils
mailing list