diff options
author | James Greenhalgh <james.greenhalgh@arm.com> | 2014-09-19 16:23:44 +0000 |
---|---|---|
committer | James Greenhalgh <jgreenhalgh@gcc.gnu.org> | 2014-09-19 16:23:44 +0000 |
commit | bcd0e41fdad9fcf1b0ef5e176ecf9a39315ace20 (patch) | |
tree | 129008c6cacb78692e210bf42abaced1492075b8 | |
parent | d39d05a75beac00d4c5261ca02a10024fc0aded4 (diff) | |
download | gcc-bcd0e41fdad9fcf1b0ef5e176ecf9a39315ace20.zip gcc-bcd0e41fdad9fcf1b0ef5e176ecf9a39315ace20.tar.gz gcc-bcd0e41fdad9fcf1b0ef5e176ecf9a39315ace20.tar.bz2 |
Re: [Patch] Teach genrecog/genoutput that scratch registers require write constraint modifiers
gcc/
* genrecog.c (validate_pattern): Allow empty constraints in
a match_scratch.
From-SVN: r215397
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genrecog.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ec7836..3e8ecc8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/genrecog.c b/gcc/genrecog.c index b3b5bb4..4d7d3b7 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -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 != '+') { |