diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-24 23:29:41 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-24 23:29:41 +0000 |
commit | e8b065281040f9e3f6bed9b7f633139ad930f9f5 (patch) | |
tree | f82e67116455c990ac9fdc580e1af29b8e486995 /gcc/cppbuiltin.c | |
parent | b728c9d49b79ed7f8e8e53cf6878c7abd6dc5e44 (diff) | |
download | gcc-e8b065281040f9e3f6bed9b7f633139ad930f9f5.tar.gz |
gcc/
* cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
__FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
* config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
* doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
* system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
libgcc/
* config/libbid/bid_conf.h (BID_BIG_ENDIAN): Define in terms of
__FLOAT_WORD_ORDER__.
* config/libbid/bid_gcc_intrinsics.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN):
Delete.
libdecnumber/
* dconfig.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
(WORDS_BIG_ENDIAN): Define based on value of __FLOAT_WORD_ORDER__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167129 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppbuiltin.c')
-rw-r--r-- | gcc/cppbuiltin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cppbuiltin.c b/gcc/cppbuiltin.c index ffee4c02994..ee00de5d468 100644 --- a/gcc/cppbuiltin.c +++ b/gcc/cppbuiltin.c @@ -157,6 +157,11 @@ define_builtin_macros_for_type_sizes (cpp_reader *pfile) cpp_define (pfile, "__BYTE_ORDER__=__ORDER_PDP_ENDIAN__"); } + cpp_define_formatted (pfile, "__FLOAT_WORD_ORDER__=%s", + (FLOAT_WORDS_BIG_ENDIAN + ? "__ORDER_BIG_ENDIAN__" + : "__ORDER_LITTLE_ENDIAN__")); + /* ptr_type_node can't be used here since ptr_mode is only set when toplev calls backend_init which is not done with -E switch. */ cpp_define_formatted (pfile, "__SIZEOF_POINTER__=%d", |