This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA (tree-cfg): PATCH for 68983 (ICE in copy constructor)
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: Jason Merrill <jason at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 8 Jan 2016 12:18:31 +0100
- Subject: Re: RFA (tree-cfg): PATCH for 68983 (ICE in copy constructor)
- Authentication-results: sourceware.org; auth=none
- References: <568F42FE dot 104 at redhat dot com> <2628368 dot pf5kWqJJSI at polaris>
On Fri, Jan 8, 2016 at 8:22 AM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> But it occurs to me that since the real problem I was trying to catch is
>> creation of temporaries of TREE_ADDRESSABLE type in the back end, we
>> should guard that instead. So this patch moves the assert into assign_temp.
>
> FWIW create_tmp_var has a slightly stronger version:
>
> gcc_assert (!TREE_ADDRESSABLE (type) && COMPLETE_TYPE_P (type));
Ok with the assert changed to match that of create_tmp_var.
Thanks,
Richard.
> --
> Eric Botcazou