Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    7f2f0a01
    re PR target/58864 (ICE in connect_traces, at dwarf2cfi.c:NNNN) · 7f2f0a01
    Jakub Jelinek authored
    	PR target/58864
    	* dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
    	New functions.
    	* expr.h (struct saved_pending_stack_adjust): New type.
    	(save_pending_stack_adjust, restore_pending_stack_adjust): New
    	prototypes.
    	* optabs.c (emit_conditional_move): Call save_pending_stack_adjust
    	and get_last_insn before do_pending_stack_adjust, call
    	restore_pending_stack_adjust after delete_insns_since.
    	* expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
    	before calling emit_conditional_move.
    	* expmed.c (expand_sdiv_pow2): Likewise.
    	* calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
    
    	* g++.dg/opt/pr58864.C: New test.
    
    From-SVN: r205618
    7f2f0a01
    History
    re PR target/58864 (ICE in connect_traces, at dwarf2cfi.c:NNNN)
    Jakub Jelinek authored
    	PR target/58864
    	* dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
    	New functions.
    	* expr.h (struct saved_pending_stack_adjust): New type.
    	(save_pending_stack_adjust, restore_pending_stack_adjust): New
    	prototypes.
    	* optabs.c (emit_conditional_move): Call save_pending_stack_adjust
    	and get_last_insn before do_pending_stack_adjust, call
    	restore_pending_stack_adjust after delete_insns_since.
    	* expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
    	before calling emit_conditional_move.
    	* expmed.c (expand_sdiv_pow2): Likewise.
    	* calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
    
    	* g++.dg/opt/pr58864.C: New test.
    
    From-SVN: r205618