[Bug rtl-optimization/77714] Wrong code generation for gcc.c-torture/execute/pr51447.c

edlinger at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 24 14:33:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77714

Bernd Edlinger <edlinger at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-09-24
     Ever confirmed|0                           |1

--- Comment #2 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Maybe you can try this:

Index: lra-eliminations.c
===================================================================
--- lra-eliminations.c  (revision 240437)
+++ lra-eliminations.c  (working copy)
@@ -973,11 +973,11 @@
                       up.  */
                    validate_change (insn, &SET_SRC (old_set), src, 1);
                    validate_change (insn, &SET_DEST (old_set),
-                                    ep->from_rtx, 1);
+                                    ep->to_rtx, 1);
                    if (! apply_change_group ())
                      {
                        SET_SRC (old_set) = src;
-                       SET_DEST (old_set) = ep->from_rtx;
+                       SET_DEST (old_set) = ep->to_rtx;
                      }
                    lra_update_insn_recog_data (insn);
                    /* Add offset note for future updates.  */


More information about the Gcc-bugs mailing list