[committed] CRIS: Correct "T" to define_memory_constraint, not define_constraint

Message ID 20230328013200.52DA220417@pchp3.se.axis.com
State Unresolved
Headers
Series [committed] CRIS: Correct "T" to define_memory_constraint, not define_constraint |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Hans-Peter Nilsson March 28, 2023, 1:32 a.m. UTC
  This patch has no effect on builds using reload of libgcc, newlib libc, my
own at-a-glance-testsuite and coremark.  That somewhat surprisingly
also goes for LRA builds, even with all CRIS reload_in_progress
augmented to include lra_in_progress.  I just noticed it when checking
because another port had a similar fix, where it mattered for LRA.

	* config/cris/constraints.md ("T"): Correct to
	define_memory_constraint.
---
 gcc/config/cris/constraints.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/config/cris/constraints.md b/gcc/config/cris/constraints.md
index 5efb61364f46..fa9aa19d13e3 100644
--- a/gcc/config/cris/constraints.md
+++ b/gcc/config/cris/constraints.md
@@ -100,7 +100,7 @@  (define_memory_constraint "Q"
 					       || reload_completed)")))
 
 ;; Extra constraints.
-(define_constraint "T"
+(define_memory_constraint "T"
   "Memory three-address operand."
   ;; All are indirect-memory:
   (and (match_code "mem")