https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103515
Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |powerpc --- Comment #1 from Kewen Lin <linkw at gcc dot gnu.org> --- Put the below code at the beginning of function rs6000_can_inline_p can make it ICE. tree caller_tree = DECL_FUNCTION_SPECIFIC_TARGET (caller); if (!caller_tree) { caller_tree = target_option_default_node; gcc_assert (rs6000_isa_flags == TREE_TARGET_OPTION (caller_tree)->x_rs6000_isa_flags); } #1 0x0000000011f1ff7c in rs6000_can_inline_p (caller=<function_decl 0x7ffff5c44700 __ct_base >, callee=<function_decl 0x7ffff5c44400 __ct_base >) (gdb) p /x (rs6000_isa_flags ^ TREE_TARGET_OPTION (caller_tree)->x_rs6000_isa_flags) & OPTION_MASK_SAVE_TOC_INDIRECT $2 = 0x10000000000000