This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[genmatch] reject empty c_expr


Hi,
We allow c_expr to be empty which accepts cases like the following:

(simplify
  match-operand
  (if ()
    result-operand))

(simplify
  match-operand
  {})

The attached patch rejects empty c_expr.
Ok for trunk after bootstrap + test ?

Thank you,
Prathamesh

Attachment: ChangeLog.txt
Description: Text document

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]