]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Re: [Patch] Teach genrecog/genoutput that scratch registers require write constraint...
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 19 Sep 2014 16:23:44 +0000 (16:23 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 19 Sep 2014 16:23:44 +0000 (16:23 +0000)
gcc/

* genrecog.c (validate_pattern): Allow empty constraints in
a match_scratch.

From-SVN: r215397

gcc/ChangeLog
gcc/genrecog.c

index 7ec7836f10ccec711744d68f413d76d0f606371c..3e8ecc8a3a296434da03c5b5d17cebbacc7e67c2 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * genrecog.c (validate_pattern): Allow empty constraints in
+       a match_scratch.
+
 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
 
        * dwarf2out.c (decl_ultimate_origin): Update comment.
index b3b5bb46addcf78536d2db3bbc7aa9227afc25e2..4d7d3b781bfd8ae5c1316d7e677d50fc184651f0 100644 (file)
@@ -461,6 +461,7 @@ validate_pattern (rtx pattern, rtx insn, rtx set, int set_code)
        /* If a MATCH_SCRATCH is used in a context requiring an write-only
           or read/write register, validate that.  */
        if (set_code == '='
+           && constraints0
            && constraints0 != '='
            && constraints0 != '+')
          {