[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch
From: |
Andrew Gierth |
Subject: |
bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch |
Date: |
Fri, 19 Jun 2020 17:07:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) |
Patch attached.
--
Andrew.
diff --git a/libguile/lightening/lightening/arm-cpu.c
b/libguile/lightening/lightening/arm-cpu.c
index 4445266af..2b4eecc29 100644
--- a/libguile/lightening/lightening/arm-cpu.c
+++ b/libguile/lightening/lightening/arm-cpu.c
@@ -230,7 +230,7 @@ encode_thumb_immediate(unsigned int v)
return ((v & 0xff) | (1 << 12));
/* abcdefgh 00000000 abcdefgh 00000000 */
if (((v & 0xffff0000) >> 16) == (v & 0xffff) && (v & 0xff) == 0)
- return ((v & 0x000000ff) | (2 << 12));
+ return (((v & 0x0000ff00) >> 8) | (2 << 12));
/* abcdefgh abcdefgh abcdefgh abcdefgh */
if ( (v & 0xff) == ((v & 0xff00) >> 8) &&
((v & 0xff00) >> 8) == ((v & 0xff0000) >> 16) &&
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch, Ludovic Courtès, 2020/06/17
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch, dsmich, 2020/06/18
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch, dsmich, 2020/06/18
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch,
Andrew Gierth <=
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch, dsmich, 2020/06/19
- bug#40737: Segfault in arm gcc7, thumb2 builroot, with arm patch, dsmich, 2020/06/22