public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7578] [PR99454] LRA: Process 0..9 constraints in process_address_1
@ 2021-03-09 14:06 Vladimir Makarov
  0 siblings, 0 replies; only message in thread
From: Vladimir Makarov @ 2021-03-09 14:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9725df0233b6fb6e761875968b3b8e9fd9f522ac

commit r11-7578-g9725df0233b6fb6e761875968b3b8e9fd9f522ac
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date:   Tue Mar 9 09:05:05 2021 -0500

    [PR99454] LRA: Process 0..9 constraints in process_address_1
    
    We need to process 0..9 constraints to fetch the right op constraint in
    the function.  Also 0..9 constraints gives unknown class constraint
    class which can result in skipping address normalization for memory in asm.
    
    gcc/ChangeLog:
    
            PR target/99454
            * lra-constraints.c (process_address_1): Process 0..9 constraints
            in process_address_1.

Diff:
---
 gcc/lra-constraints.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 76e3ff7efe6..feff766c590 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -3452,6 +3452,10 @@ process_address_1 (int nop, bool check_only_p,
 
   constraint
     = skip_contraint_modifiers (curr_static_id->operand[nop].constraint);
+  if ('0' <= constraint[0] && constraint[0] <= '9')
+    constraint
+      = skip_contraint_modifiers (curr_static_id->operand
+				  [constraint[0] - '0'].constraint);
   cn = lookup_constraint (constraint);
   if (insn_extra_address_constraint (cn)
       /* When we find an asm operand with an address constraint that


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-09 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 14:06 [gcc r11-7578] [PR99454] LRA: Process 0..9 constraints in process_address_1 Vladimir Makarov

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).