https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87761
--- Comment #20 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Wed Mar 27 16:18:06 2019 New Revision: 269967 URL: https://gcc.gnu.org/viewcvs?rev=269967&root=gcc&view=rev Log: PR rtl-optimization/87761 PR rtl-optimization/89826 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test slightly later. (pass_cprop_hardreg::execute): Call df_analyze after adding the note problem to get REG_DEAD/REG_UNUSED notes updated. PR rtl-optimization/87761 PR rtl-optimization/89826 * gcc.c-torture/execute/pr89826.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr89826.c Modified: trunk/gcc/ChangeLog trunk/gcc/regcprop.c trunk/gcc/testsuite/ChangeLog