aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-02-13 09:56:51 +1030
committerAlan Modra <amodra@gmail.com>2022-02-13 14:00:56 +1030
commitccbaaa36174c2c3184344ee0e6db648491149a33 (patch)
tree7585071dd305e149b3e11eacb487bc6c1d6d1b41 /include
parent2085ee26500b2d1b7a11ece8c44395e6403493f4 (diff)
downloadgdb-ccbaaa36174c2c3184344ee0e6db648491149a33.zip
gdb-ccbaaa36174c2c3184344ee0e6db648491149a33.tar.gz
gdb-ccbaaa36174c2c3184344ee0e6db648491149a33.tar.bz2
PR28882, build failure with gcc-4.2 due to use of 0b literals
PR 28882 * elf/loongarch.h: Replace binary literals with hex.
Diffstat (limited to 'include')
-rw-r--r--include/elf/loongarch.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index b835a3e..1893ef5 100644
--- a/include/elf/loongarch.h
+++ b/include/elf/loongarch.h
@@ -93,14 +93,14 @@ RELOC_NUMBER (R_LARCH_GNU_VTENTRY, 58)
END_RELOC_NUMBERS (R_LARCH_count)
/* Processor specific flags for the ELF header e_flags field. */
-#define EF_LOONGARCH_ABI_ILP32 0b01
-#define EF_LOONGARCH_ABI_LP64 0b11
-#define EF_LOONGARCH_ABI_MASK 0b11
-
-#define EF_LOONGARCH_FLOAT_ABI_SOFT 0b001100
-#define EF_LOONGARCH_FLOAT_ABI_SINGLE 0b001000
-#define EF_LOONGARCH_FLOAT_ABI_DOUBLE 0b000000
-#define EF_LOONGARCH_FLOAT_ABI_MASK 0b111100
+#define EF_LOONGARCH_ABI_ILP32 0x1
+#define EF_LOONGARCH_ABI_LP64 0x3
+#define EF_LOONGARCH_ABI_MASK 0x3
+
+#define EF_LOONGARCH_FLOAT_ABI_SOFT 0x0c
+#define EF_LOONGARCH_FLOAT_ABI_SINGLE 0x08
+#define EF_LOONGARCH_FLOAT_ABI_DOUBLE 0x00
+#define EF_LOONGARCH_FLOAT_ABI_MASK 0x3c
#define EF_LOONGARCH_IS_LP64(abi) \
((abi & EF_LOONGARCH_ABI_MASK) == EF_LOONGARCH_ABI_LP64)