This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gsoc 2014] moving fold-const patterns to gimple
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Mar 2014 09:52:44 +0100
- Subject: Re: [gsoc 2014] moving fold-const patterns to gimple
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsDSbO7QTSkJ-y4ftO4SshGkwYuow+U0nb4FdHSjHtfB=A at mail dot gmail dot com> <CAFiYyc0UqPLoV76gUWiUXzCa3SxumXrmq7vsFtJ4GtnNjVrf3A at mail dot gmail dot com> <CAJXstsAAA0=2ELCaai8SdM3e3S1S2hcigUF2A=s0jS-ytwCXdA at mail dot gmail dot com> <CAFiYyc09sUOGGaPzRge6ysr1TzucGCMufFSQbTy5GADXWh5rTg at mail dot gmail dot com> <CAJXstsAuf8PSvbFMudDV43xdJTQ5wxYoiRGO5MJ-u0QCZYVunw at mail dot gmail dot com> <CAFiYyc0k=onaLtokpzsbbHDQ7SvotYdpkuF5z+UyVwC2JhkFnA at mail dot gmail dot com> <CAJXstsCD1EEMKqB19-=7SOrsmQgNFn23+mUe0+S-bPULHLgbXg at mail dot gmail dot com> <CAFiYyc2W7nmYnpBFF-xhO3G4rGzVLXvZoCaRV6UTo_2aZNxuxA at mail dot gmail dot com> <CAFiYyc2WRuH7Am42zBQd2-h6tatsgX8Wn9ECb_b_QNq0FYTA1g at mail dot gmail dot com> <CAJXstsC86wTB6oWdaCqtcR6vP4k4OJu0eAsoTLxsp_iXz48hvg at mail dot gmail dot com> <CAFiYyc0xD8X9bwrg1iAziqZO-BOZ1vYkW+fm+8i75eUp_-pCyQ at mail dot gmail dot com> <CAJXstsDnSn54JNVaN3ZY8b4LnfjgYJ=0p_+M+_GnYVTF3-NMrA at mail dot gmail dot com>
On Sun, Mar 16, 2014 at 1:21 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> 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.