https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70366

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
The ICE points at

      cl_optimization_restore (&opts,
         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl)));

so it is likely DECL_FUNCTION_SPECIFIC_OPTIMIZATION being NULL.  That's
quite possible.  Does replacing this with

      cl_optimization_restore (&opts, opts_for_fn (to->decl));

fix this?  If so please prepare and test a patch doing that.

Reply via email to