public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: PR28882, build failure with gcc-4.2 due to use of 0b literals
Date: Sun, 13 Feb 2022 14:07:52 +1030	[thread overview]
Message-ID: <Ygh9EPlYDksF5GFL@squeak.grove.modra.org> (raw)

	PR 28882
	* elf/loongarch.h: Replace binary literals with hex.

diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index b835a3e98c7..1893ef5faae 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)

-- 
Alan Modra
Australia Development Lab, IBM

                 reply	other threads:[~2022-02-13  3:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Ygh9EPlYDksF5GFL@squeak.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).