From patchwork Sun Dec 21 13:58:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 42504 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EB2C824064 for ; Sun, 21 Dec 2014 13:59:21 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf2124090eek.5 for ; Sun, 21 Dec 2014 05:59:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to :content-type:x-original-sender:x-original-authentication-results; bh=AfklCNC/f7QOwda5CWiqWGA9sMnQR/y21acQUSv4niU=; b=IxGsTtLCTUOBJYdrzS4ejVT/eGQ/cwT2T5g4gejZWhttXeQZaEdqLJZRl4resIHv3w F0rJaXBJFLyx73uiSPEDnuC8tMdEHTneAE9bSYPL6TNxIZqgPFU3qUh51Ilud1eAFmOO K8s2WvH0gFe2n3UNuR/lNwWCQZ8Vkpl3vIdq8akOMrNuzj14XhoQwXmmoswGVEEQJ7Lv RDYL0SBEG8YUPxrJQcqw+UhdoyDUbKSfTnE0dpImQj9AfCCOU8xTAD+wWGSRdj40SjnW YPpee9Th32feaUKElAT1Gjx5CZgG/hfJqZ/RKIEm+NJVUZMBLuhAgNa1Tk5InwruqP9M BTAg== X-Gm-Message-State: ALoCoQmy0MdQinorMndky+HP7bjhGzvT3nDwzYGvSxaaH898meZUiPmd0VdshgfjAfOkeYOFqhvU X-Received: by 10.152.42.196 with SMTP id q4mr6997lal.6.1419170361167; Sun, 21 Dec 2014 05:59:21 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.99 with SMTP id s3ls1229126lag.79.gmail; Sun, 21 Dec 2014 05:59:20 -0800 (PST) X-Received: by 10.152.5.132 with SMTP id s4mr17356999las.39.1419170360958; Sun, 21 Dec 2014 05:59:20 -0800 (PST) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com. [2a00:1450:4010:c04::22b]) by mx.google.com with ESMTPS id bd9si15782342lab.42.2014.12.21.05.59.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Dec 2014 05:59:20 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22b as permitted sender) client-ip=2a00:1450:4010:c04::22b; Received: by mail-lb0-f171.google.com with SMTP id w7so2811755lbi.2 for ; Sun, 21 Dec 2014 05:59:20 -0800 (PST) X-Received: by 10.152.27.8 with SMTP id p8mr17509104lag.69.1419170360604; Sun, 21 Dec 2014 05:59:20 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp786733lbb; Sun, 21 Dec 2014 05:59:19 -0800 (PST) X-Received: by 10.66.253.100 with SMTP id zz4mr28006274pac.16.1419170358207; Sun, 21 Dec 2014 05:59:18 -0800 (PST) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id bj8si21493457pad.196.2014.12.21.05.59.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Dec 2014 05:59:18 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-387897-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 27219 invoked by alias); 21 Dec 2014 13:59:04 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 27201 invoked by uid 89); 21 Dec 2014 13:59:03 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f48.google.com Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com) (209.85.215.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 21 Dec 2014 13:59:01 +0000 Received: by mail-la0-f48.google.com with SMTP id gf13so2833807lab.21 for ; Sun, 21 Dec 2014 05:58:58 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.35.134 with SMTP id h6mr17685773lbj.67.1419170338325; Sun, 21 Dec 2014 05:58:58 -0800 (PST) Received: by 10.25.211.16 with HTTP; Sun, 21 Dec 2014 05:58:58 -0800 (PST) Date: Sun, 21 Dec 2014 19:28:58 +0530 Message-ID: Subject: [match-and-simplify] add default arguments to parser::parse_simplify. From: Prathamesh Kulkarni To: Richard Biener , gcc Patches X-IsSubscribed: yes X-Original-Sender: prathamesh.kulkarni@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22b as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Committed (r218996) as obvious. Thanks, Prathamesh 2014-12-21 Prathamesh Kulkarni * 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. 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&, operand *, source_location, operand *, source_location); - void parse_simplify (source_location, vec&, predicate_id *, - expr *); + void parse_simplify (source_location, vec&, 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;