[Bug target/105554] [10/11/12/13 Regression] ICE: in emit_block_move_hints, at expr.cc:1829 since r9-5509-g5928bc2ec06dd4e7
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Jan 16 13:01:41 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105554
--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 16 Jan 2023, marxin at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105554
>
> --- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
> > fixes the ICE, not sure if we should adjust the PARM_DECLs mode somewhere
> > in target cloning instead though?
>
> We can do that in create_target_clone which calls
> node->create_version_clone_with_body where a new function_decl is created.
>
> However, the following code does not work:
>
> for (tree arg = DECL_ARGUMENTS (new_node->decl); arg; arg = DECL_CHAIN (arg))
> if (VECTOR_TYPE_P (TREE_TYPE (arg)))
> SET_DECL_MODE (arg, TYPE_MODE (TREE_TYPE (arg)));
>
> I'm curious about what needs to be changed once we can get a proper MODE for
> the new argument.
Well, most definitely the new decls target options need to be
instantiated?
More information about the Gcc-bugs
mailing list