[committed,hppa] Define builtin __BIG_ENDIAN__

Message ID 8d05e69b-47fd-206c-17fa-fd63e28c7b0b@bell.net
State New
Headers show
Series
  • [committed,hppa] Define builtin __BIG_ENDIAN__
Related show

Commit Message

John David Anglin March 24, 2020, 5:18 p.m.
Although Martin provided stronger fix, this fixes lto/94249 on hppa-linux.  It seems we
never defined __BIG_ENDIAN__.  Probably, a few packages test for it.

Tested on hppa-unknown-linux-gnu.  Committed to trunk, gcc-9 and gcc-8.

Dave

2020-03-24  John David Anglin  <danglin@gcc.gnu.org>

	PR lto/94249
	* config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.

Patch

diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 8800191a9a8..b3eb81d7b37 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -171,6 +171,7 @@  do {								\
      builtin_assert("machine=hppa");				\
      builtin_define("__hppa");					\
      builtin_define("__hppa__");				\
+     builtin_define("__BIG_ENDIAN__");				\
      if (TARGET_PA_20)						\
        builtin_define("_PA_RISC2_0");				\
      else if (TARGET_PA_11)					\