Message ID | CAAgBjMnHE5eYT9=-HWNCDrj9mdaNZaE-u-0nY+ZAxHC8vOnX+g@mail.gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDS7JK5B44KRBGW352VAKGQEYPGYGLI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BC52121411 for <linaro@patches.linaro.org>; Tue, 19 May 2015 21:39:39 +0000 (UTC) Received: by wgbgf7 with SMTP id gf7sf8631963wgb.2 for <linaro@patches.linaro.org>; Tue, 19 May 2015 14:39:38 -0700 (PDT) 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:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-original-sender :x-original-authentication-results; bh=+f0VEx/pF9McWf6+1Vvk7ptOME4DvCae2ljbKwamwXs=; b=DuV4q4eG5ZLYWOEKViqjyVqKGj4pnG98/iwmV3Tc/UDBvmB6ZHRUZxxtmATVtURftG A+DoyZmfm2MWxdLAryUt+HaY/qgOWB7C4OOT3pKJI6KeuvkoUOGQ20NBap1Zn8VKUsTP Hghe7m6YmoGTuFd798+LWJhvUXp44gbJwv8wxMTb0qo08eFu+HYW0gp8dVfBqvTYsWz8 4+hw3yqYedHHfolaOa/tuJZz2A9wg78dlOtIVppPXmbcnravUEmj8T+I+6jpji4kUmBP Pbd1m1nz6tISnILK1sOULhYqk1ZdmhJXM/5WwW/y7ir1yZBUqWdStGhdFG3UuxKu4NmU wu/w== X-Gm-Message-State: ALoCoQkAzKyFh94uV7b+EJ4MgWwvAJhCD6nnJfuyLyBuu9vIpBNonmvqL66rOb6LZMGmkmrc25U5 X-Received: by 10.194.202.229 with SMTP id kl5mr10134152wjc.3.1432071578110; Tue, 19 May 2015 14:39:38 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.135 with SMTP id e7ls129679lam.79.gmail; Tue, 19 May 2015 14:39:37 -0700 (PDT) X-Received: by 10.152.22.72 with SMTP id b8mr7196939laf.1.1432071577940; Tue, 19 May 2015 14:39:37 -0700 (PDT) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com. [2a00:1450:4010:c03::230]) by mx.google.com with ESMTPS id le4si9874913lac.158.2015.05.19.14.39.37 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 14:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::230 as permitted sender) client-ip=2a00:1450:4010:c03::230; Received: by labbd9 with SMTP id bd9so45808865lab.2 for <patchwork-forward@linaro.org>; Tue, 19 May 2015 14:39:37 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr23562041lbc.86.1432071577704; Tue, 19 May 2015 14:39:37 -0700 (PDT) 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.108.230 with SMTP id hn6csp1086334lbb; Tue, 19 May 2015 14:39:34 -0700 (PDT) X-Received: by 10.70.32.164 with SMTP id k4mr58359413pdi.138.1432071572952; Tue, 19 May 2015 14:39:32 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id f4si23232771pas.118.2015.05.19.14.39.31 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 14:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-398322-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 115958 invoked by alias); 19 May 2015 21:39:16 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 115944 invoked by uid 89); 19 May 2015 21:39:16 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_40, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f43.google.com Received: from mail-la0-f43.google.com (HELO mail-la0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 19 May 2015 21:39:14 +0000 Received: by lagr1 with SMTP id r1so45046944lag.0 for <gcc-patches@gcc.gnu.org>; Tue, 19 May 2015 14:39:10 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.48.68 with SMTP id j4mr158090lbn.60.1432071550356; Tue, 19 May 2015 14:39:10 -0700 (PDT) Received: by 10.25.205.146 with HTTP; Tue, 19 May 2015 14:39:10 -0700 (PDT) In-Reply-To: <alpine.LSU.2.11.1505191102430.18702@zhemvz.fhfr.qr> References: <CAAgBjMn1VJO6aMXzLNZfzG1WnzjyuZkn2gkHJd1gnpDLf+HqVA@mail.gmail.com> <alpine.LSU.2.11.1505181033170.18702@zhemvz.fhfr.qr> <CAAgBjM=DN08AncZcgcwGXhaWvyFCADj3FEQF2NYVpu-ZWhGjfQ@mail.gmail.com> <CAAgBjMnL9k74HO3Y4paXGGU+B=t1k4BrChipBiTC717hwg7Keg@mail.gmail.com> <alpine.LSU.2.11.1505191102430.18702@zhemvz.fhfr.qr> Date: Wed, 20 May 2015 03:09:10 +0530 Message-ID: <CAAgBjMnHE5eYT9=-HWNCDrj9mdaNZaE-u-0nY+ZAxHC8vOnX+g@mail.gmail.com> Subject: Re: [match-and-simplify] fix incorrect code-gen in 'for' pattern From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> To: Richard Biener <rguenther@suse.de> Cc: gcc Patches <gcc-patches@gcc.gnu.org> Content-Type: multipart/mixed; boundary=001a1134a2dc0dc3da051676241d 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:c03::230 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 |
Index: genmatch.c =================================================================== --- genmatch.c (revision 223352) +++ genmatch.c (working copy) @@ -3329,8 +3329,13 @@ "others with arity %d", oper, idb->nargs, arity); user_id *p = dyn_cast<user_id *> (idb); - if (p && p->is_oper_list) - op->substitutes.safe_splice (p->substitutes); + if (p) + { + if (p->is_oper_list) + op->substitutes.safe_splice (p->substitutes); + else + fatal_at (token, "iterator cannot be used as operator-list"); + } else op->substitutes.safe_push (idb); }