[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

linkw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 23 08:14:58 GMT 2022


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

--- Comment #9 from Kewen Lin <linkw at gcc dot gnu.org> ---
inline_call will force reload global optimization.

  /* Reload global optimization flags.  */
  if (reload_optimization_node && DECL_STRUCT_FUNCTION (to->decl) == cfun)
    set_cfun (cfun, true);

It looks that ix86_set_current_function can create one new target option node
even if fndecl == ix86_previous_fndecl but flag_unsafe_math_optimizations (or
flag_excess_precision) != the corresponding values in the associated target
node.


More information about the Gcc-bugs mailing list