From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21411 invoked by alias); 17 Mar 2014 08:52:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 21208 invoked by uid 89); 17 Mar 2014 08:52:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f41.google.com Received: from mail-wg0-f41.google.com (HELO mail-wg0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 17 Mar 2014 08:52:47 +0000 Received: by mail-wg0-f41.google.com with SMTP id n12so4390025wgh.24 for ; Mon, 17 Mar 2014 01:52:44 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.219.44 with SMTP id pl12mr8631073wic.12.1395046364272; Mon, 17 Mar 2014 01:52:44 -0700 (PDT) Received: by 10.194.185.180 with HTTP; Mon, 17 Mar 2014 01:52:44 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Mar 2014 08:52:00 -0000 Message-ID: Subject: Re: [gsoc 2014] moving fold-const patterns to gimple From: Richard Biener To: Prathamesh Kulkarni Cc: gcc Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00242.txt.bz2 On Sun, Mar 16, 2014 at 1:21 PM, Prathamesh Kulkarni wrote: > In c_expr::c_expr, shouldn't OP_C_EXPR be passed to operand > constructor instead of OP_EXPR ? Indeed - I have committed the fix. Thanks, Richard. > This caused segfault for patterns when "simplification" operand was > only c_expr (patch attached). > > * genmatch.c (c_expr::c_expr): use OP_C_EXPR instead of OP_EXPR in > call to operand constructor.