From 0993e1868d096cfb421644ba7c53e3eed29bf779 Mon Sep 17 00:00:00 2001 From: jgreenhalgh 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215397 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/genrecog.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ec7836f10cc..3e8ecc8a3a29 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 b3b5bb46addc..4d7d3b781bfd 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 != '+') { -- 2.47.2