diff options
author | Alan Modra <amodra@gmail.com> | 2021-12-14 22:12:17 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-12-15 09:21:12 +1030 |
commit | 47cf88952ae54f561c4121dc9c90a15d90fe72ea (patch) | |
tree | 2ea9ef22227fe33d768c624d8379be7dc226205a | |
parent | a078dd9ce81537fa01356c12283bf14f29b36439 (diff) | |
download | fsf-binutils-gdb-47cf88952ae54f561c4121dc9c90a15d90fe72ea.zip fsf-binutils-gdb-47cf88952ae54f561c4121dc9c90a15d90fe72ea.tar.gz fsf-binutils-gdb-47cf88952ae54f561c4121dc9c90a15d90fe72ea.tar.bz2 |
loongarch32 build failure on 32-bit host
gas/config/tc-loongarch.c: In function ‘assember_macro_helper’:
gas/config/tc-loongarch.c:915:28: error: right shift count >= width of type [-Werror=shift-count-overflow]
915 | hi32 = insn->args[1] >> 32;
| ^~
One possible fix is to make offsetT a 64-bit type for loongarch32.
This also makes bfd/targmatch.h (generated from bfd/config.bfd)
consistent since the loongarch32 match is inside #ifdef BFD64.
* config.bfd (loongarch32-*): Set want64.
-rw-r--r-- | bfd/config.bfd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/config.bfd b/bfd/config.bfd index 7769182..08755e4 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -1463,7 +1463,7 @@ case "${targ}" in loongarch32-*) targ_defvec=loongarch_elf32_vec targ_selvecs="loongarch_elf32_vec" - want64=false + want64=true ;; loongarch64-*) |