From: Hans-Peter Nilsson Date: Fri, 30 Aug 2002 13:13:59 +0000 (+0000) Subject: target.c (ffetarget_memcpy_): Don't test nonexistent HOST_BYTES_BIG_ENDIAN, HOST_BITS... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e11b0b702679d7f9262eb8f3fbf7efb0c8a38473;p=platform%2Fupstream%2Fgcc.git target.c (ffetarget_memcpy_): Don't test nonexistent HOST_BYTES_BIG_ENDIAN, HOST_BITS_BIG_ENDIAN. * target.c (ffetarget_memcpy_): Don't test nonexistent HOST_BYTES_BIG_ENDIAN, HOST_BITS_BIG_ENDIAN. Check HOST_WORDS_BIG_ENDIAN against both WORDS_BIG_ENDIAN and BYTES_BIG_ENDIAN. From-SVN: r56683 --- diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 44863d5..dc5ce88 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,10 @@ +2002-08-30 Hans-Peter Nilsson + + * target.c (ffetarget_memcpy_): Don't test nonexistent + HOST_BYTES_BIG_ENDIAN, HOST_BITS_BIG_ENDIAN. Check + HOST_WORDS_BIG_ENDIAN against both WORDS_BIG_ENDIAN and + BYTES_BIG_ENDIAN. + 2002-08-30 Alan Modra * target.h (FFETARGET_32bit_longs): Don't define for powerpc64 or diff --git a/gcc/f/target.c b/gcc/f/target.c index 5c06368..1ea4fa2 100644 --- a/gcc/f/target.c +++ b/gcc/f/target.c @@ -2521,6 +2521,9 @@ void * ffetarget_memcpy_ (void *dst, void *src, size_t len) { #ifdef CROSS_COMPILE + /* HOST_WORDS_BIG_ENDIAN corresponds to both WORDS_BIG_ENDIAN and + BYTES_BIG_ENDIAN (i.e. there are no HOST_ macros to represent a + difference in the two latter). */ int host_words_big_endian = #ifndef HOST_WORDS_BIG_ENDIAN 0 @@ -2529,22 +2532,6 @@ ffetarget_memcpy_ (void *dst, void *src, size_t len) #endif ; - int host_bytes_big_endian = -#ifndef HOST_BYTES_BIG_ENDIAN - 0 -#else - HOST_BYTES_BIG_ENDIAN -#endif - ; - - int host_bits_big_endian = -#ifndef HOST_BITS_BIG_ENDIAN - 0 -#else - HOST_BITS_BIG_ENDIAN -#endif - ; - /* This is just hands thrown up in the air over bits coming through this function representing a number being memcpy:d as-is from host to target. We can't generally adjust endianness here since we don't @@ -2555,8 +2542,7 @@ ffetarget_memcpy_ (void *dst, void *src, size_t len) 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) + || !BYTES_BIG_ENDIAN != !host_words_big_endian) sorry ("data initializer on host with different endianness"); #endif /* CROSS_COMPILE */