public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1104] Fix bug in the define_subst handling that made match_scratch unusable for multi-alternative patterns
@ 2021-05-28  6:34 Joern Rennecke
  0 siblings, 0 replies; only message in thread
From: Joern Rennecke @ 2021-05-28  6:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dd1ef00c45ba99ea10082f913c20319b1951defe

commit r12-1104-gdd1ef00c45ba99ea10082f913c20319b1951defe
Author: Joern Rennecke <joern.rennecke@embecosm.com>
Date:   Fri May 28 07:29:53 2021 +0100

    Fix bug in the define_subst handling that made match_scratch unusable for multi-alternative patterns.
    
    2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
    
    gcc/
            * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.

Diff:
---
 gcc/gensupport.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index e1ca06dbc1e..4022c661adb 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -1291,6 +1291,9 @@ alter_constraints (rtx pattern, int n_dup, constraints_handler_t alter)
     case MATCH_OPERAND:
       XSTR (pattern, 2) = alter (XSTR (pattern, 2), n_dup);
       break;
+    case MATCH_SCRATCH:
+      XSTR (pattern, 1) = alter (XSTR (pattern, 1), n_dup);
+      break;
 
     default:
       break;


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

only message in thread, other threads:[~2021-05-28  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28  6:34 [gcc r12-1104] Fix bug in the define_subst handling that made match_scratch unusable for multi-alternative patterns Joern Rennecke

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