https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68730
--- Comment #19 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Author: bernds Date: Tue Feb 16 21:13:59 2016 New Revision: 233475 URL: https://gcc.gnu.org/viewcvs?rev=233475&root=gcc&view=rev Log: Backport lra-remat fix from mainline, PR68730 PR rtl-optimization/68730 * lra-remat.c (insn_to_cand_activation): New static variable. (lra_remat): Allocate and free it. (create_cand): New arg activation. Initialize a field in insn_to_cand_activation if it is nonnull. (create_cands): Pass the activation insn to create_cand when making a candidate involving an output reload. Reorganize code a little. (do_remat): Keep track of active status of candidates in a separate bitmap. Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/lra-remat.c