[match-and-simplify] add default arguments to parser::parse_simplify.
Prathamesh Kulkarni
prathamesh.kulkarni@linaro.org
Sun Dec 21 15:16:00 GMT 2014
Committed (r218996) as obvious.
Thanks,
Prathamesh
-------------- next part --------------
2014-12-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* genmatch.c (parser::parse_simplify): Make last two parametes have default value 0.
(parser::parse_pattern): Adjust call to parser::parse_simplify to avoid passing default arguments.
-------------- next part --------------
Index: gcc/genmatch.c
===================================================================
--- gcc/genmatch.c (revision 218995)
+++ gcc/genmatch.c (working copy)
@@ -2727,8 +2727,8 @@
void parse_pattern ();
void push_simplify (vec<simplify *>&, operand *, source_location,
operand *, source_location);
- void parse_simplify (source_location, vec<simplify *>&, predicate_id *,
- expr *);
+ void parse_simplify (source_location, vec<simplify *>&, predicate_id * = 0,
+ expr * = 0);
void parse_for (source_location);
void parse_if (source_location);
void parse_predicates (source_location);
@@ -3494,7 +3494,7 @@
const cpp_token *token = peek ();
const char *id = get_ident ();
if (strcmp (id, "simplify") == 0)
- parse_simplify (token->src_loc, simplifiers, NULL, NULL);
+ parse_simplify (token->src_loc, simplifiers);
else if (strcmp (id, "match") == 0)
{
bool with_args = false;
More information about the Gcc-patches
mailing list