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 != '+') {