This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix pattern causing C_MAYBE_CONST_EXPRs leak into gimplifier (PR c/68513)
- From: Marek Polacek <polacek at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 Nov 2015 15:59:59 +0100
- Subject: Re: [PATCH] Fix pattern causing C_MAYBE_CONST_EXPRs leak into gimplifier (PR c/68513)
- Authentication-results: sourceware.org; auth=none
- References: <20151125143509 dot GU21807 at redhat dot com> <20151125144620 dot GY5675 at tucnak dot redhat dot com> <alpine dot LSU dot 2 dot 11 dot 1511251555140 dot 4884 at t29 dot fhfr dot qr> <alpine dot LSU dot 2 dot 11 dot 1511251556030 dot 4884 at t29 dot fhfr dot qr>
On Wed, Nov 25, 2015 at 03:56:39PM +0100, Richard Biener wrote:
> > c_gimplify_expr and SAVE_EXPR_RESOLVED_P would work as well I guess?
>
> Or simply not call fold () from convert () -> convert_to_integer ().
I was thinking about calling convert_to_integer_nofold in convert; that
fixed the testcase I think, but I haven't done a proper testing.
Marek