projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1e2f6
)
RISC-V: Update soft-fp config for big-endian
author
Marcus Comstedt
<marcus@mc.pp.se>
Fri, 19 Mar 2021 19:49:05 +0000
(20:49 +0100)
committer
Kito Cheng
<kito.cheng@sifive.com>
Tue, 23 Mar 2021 09:31:13 +0000
(17:31 +0800)
libgcc/
* config/riscv/sfp-machine.h (__BYTE_ORDER): Set according
to __BYTE_ORDER__.
libgcc/config/riscv/sfp-machine.h
patch
|
blob
|
history
diff --git
a/libgcc/config/riscv/sfp-machine.h
b/libgcc/config/riscv/sfp-machine.h
index
db26971
..
8adbf4b
100644
(file)
--- a/
libgcc/config/riscv/sfp-machine.h
+++ b/
libgcc/config/riscv/sfp-machine.h
@@
-128,7
+128,11
@@
do { \
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#define __BYTE_ORDER __BIG_ENDIAN
+#else
#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
/* Define ALIASNAME as a strong alias for NAME. */