1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/toolchain/gcc/patches/4.3.6/gcc-43-pr39429.patch
2022-11-27 10:16:14 +00:00

25 lines
938 B
Diff

From: Michael Olbrich <m.olbrich@pengutronix.de>
Subject: Fix: compiler create bad asm codes.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39429 for details.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
gcc/config/arm/arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/gcc/config/arm/arm.c
===================================================================
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -6838,7 +6838,7 @@ adjacent_mem_locations (rtx a, rtx b)
/* Don't accept any offset that will require multiple
instructions to handle, since this would cause the
arith_adjacentmem pattern to output an overlong sequence. */
- if (!const_ok_for_op (PLUS, val0) || !const_ok_for_op (PLUS, val1))
+ if (!const_ok_for_op (val0, PLUS) || !const_ok_for_op (val1, PLUS))
return 0;
/* Don't allow an eliminable register: register elimination can make