https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64551
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Hello. Sorry for such issue during Friday evening. The problem is that for target compiler, target_option_default_node == NULL. I am not so familiar with options if this is correct situation? Anyway, following suggested patch return NULL as cl_target_option that compared correctly: diff --git a/gcc/tree.h b/gcc/tree.h index e9af9bf..d3f13e8 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4678,6 +4678,10 @@ target_opts_for_fn (const_tree fndecl) tree fn_opts = DECL_FUNCTION_SPECIFIC_TARGET (fndecl); if (fn_opts == NULL_TREE) fn_opts = target_option_default_node; + + if (fn_opts == NULL_TREE) + return NULL; + return TREE_TARGET_OPTION (fn_opts); } Martin