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  <dang...@gcc.gnu.org>

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

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)                                    \

Reply via email to