This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA:] (Update:) fortran f/target.c cross tweak to not fail forbig-endian hosts.


Hans-Peter Nilsson wrote:
This is an update of
<URL:http://gcc.gnu.org/ml/gcc-patches/2002-08/msg01492.html>.
Thanks for looking into this - I never understood this stuff fully ...

--- 2532,2537 ----
*************** ffetarget_memcpy_ (void *dst, void *src,
*** 2555,2562 ****
       for instance in g77.f-torture/execute/980628-[4-6].f and alpha2.f.
       Still, we compile *some* code.  FIXME: Rewrite handling of numbers.  */
    if (!WORDS_BIG_ENDIAN != !host_words_big_endian
!       || !BYTES_BIG_ENDIAN != !host_bytes_big_endian
!       || !BITS_BIG_ENDIAN != !host_bits_big_endian)
      sorry ("data initializer on host with different endianness");

  #endif /* CROSS_COMPILE */
--- 2542,2548 ----
       for instance in g77.f-torture/execute/980628-[4-6].f and alpha2.f.
       Still, we compile *some* code.  FIXME: Rewrite handling of numbers.  */
    if (!WORDS_BIG_ENDIAN != !host_words_big_endian
!       || !BYTES_BIG_ENDIAN != !host_words_big_endian)
      sorry ("data initializer on host with different endianness");

  #endif /* CROSS_COMPILE */
Hmmm, why did you omitted BITS_BIG_ENDIAN ?

--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]