diff mbox

[match-and-simplify] add default arguments to parser::parse_simplify.

Message ID CAAgBjMkk8YHV-U-jB5pNLW83m7M2i6ijyWSqw+WPydepRk8Sdg@mail.gmail.com
State New
Headers show

Commit Message

Prathamesh Kulkarni Dec. 21, 2014, 1:58 p.m. UTC
Committed (r218996) as obvious.

Thanks,
Prathamesh
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.
diff mbox

Patch

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;