Re: [PATCH] Simplify read-md.c and read-rtl.c using require_char_ws

2016-05-10 Thread Bernd Schmidt
On 05/10/2016 08:10 PM, David Malcolm wrote: +/* Consume any whitespace, then consume the next non-whitespace + character, issuing a fatal error if it is not EXPECTED. */ + +void require_char_ws (char expected) Formatting. Otherwise ok. Bernd

[PATCH] Simplify read-md.c and read-rtl.c using require_char_ws

2016-05-10 Thread David Malcolm
read-md.c and read-rtl.c repeatedly use this pattern: c = read_skip_spaces (); if (c != ')') fatal_expected_char (')', c); Simplify them by introduce a helper function to do this. Successfully bootstrapped®rtested on x86_64-pc-linux-gnu. OK for trunk? gcc/ChangeLog: * rea