From bcd0e41fdad9fcf1b0ef5e176ecf9a39315ace20 Mon Sep 17 00:00:00 2001 From: James Greenhalgh Date: Fri, 19 Sep 2014 16:23:44 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/genrecog.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ec7836f10c..3e8ecc8a3a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-19 James Greenhalgh + + * genrecog.c (validate_pattern): Allow empty constraints in + a match_scratch. + 2014-09-19 Aldy Hernandez * dwarf2out.c (decl_ultimate_origin): Update comment. diff --git a/gcc/genrecog.c b/gcc/genrecog.c index b3b5bb46add..4d7d3b781bf 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 != '+') {