https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #28 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Terry Guo from comment #25) > Debugged the ICE further and found that below line in function > ix86_get_drap_rtx is causing ICE: > > 12050 insn = emit_insn_before (seq, NEXT_INSN (entry_of_function > ())); > > It is called when generating call to __asan_stack_free_5 via > emit_library_call_value_1. The entry_of_function() is returned something > invalid. I wonder if it is correct for asan to emit the call without setting RTL function framework first. The DRAP generation needs function in RTL form, so it is able to emit DRAP setup. Let's ask Jakub about asan, if it is possible to move generation of the call after the function is already expanded to RTL.