This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Avoid ICEs due to save_expr instead of c_save_expr (PR c/54428)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 31 Aug 2012 14:49:18 +0000
- Subject: Re: [C PATCH] Avoid ICEs due to save_expr instead of c_save_expr (PR c/54428)
- References: <20120831123658.GS1999@tucnak.redhat.com>
On Fri, 31 Aug 2012, Jakub Jelinek wrote:
> 2012-08-31 Jakub Jelinek <jakub@redhat.com>
>
> PR c/54428
> * c-convert.c (convert): Don't call fold_convert_loc if
> TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
> is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
> COMPLEX_TYPE -> COMPLEX_TYPE conversion.
>
> * gcc.c-torture/compile/pr54428.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com