Re: [match-and-simplify] report error for invalid operator-lists

2015-05-19 Thread Richard Biener
On Tue, 19 May 2015, Prathamesh Kulkarni wrote: > Hi, > genmatch segfaults on: > (define_operator_list op (plus)) > > The above syntax is invalid, and it segfaults on: > fatal_error (token, "operator list is empty"); > because token is NULL. > > The patch puts a check for CPP_CLOSE_PAREN after p

[match-and-simplify] report error for invalid operator-lists

2015-05-18 Thread Prathamesh Kulkarni
Hi, genmatch segfaults on: (define_operator_list op (plus)) The above syntax is invalid, and it segfaults on: fatal_error (token, "operator list is empty"); because token is NULL. The patch puts a check for CPP_CLOSE_PAREN after parsing id-list. OK for trunk after bootstrap+testing completes ? T