PR jit/63854: lra.c: Fix leak of point_freq_vec's buffer when calling lra_inheritance
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 20:21:19 +0000 (20:21 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 20:21:19 +0000 (20:21 +0000)
gcc/ChangeLog:
PR jit/63854
* lra.c (lra): After creating live ranges in preparation for call
to lra_inheritance, set live_p to true.

From-SVN: r217806

gcc/ChangeLog
gcc/lra.c

index 9cb1ebd9d4587ccb2986c8d3997419a6872909ad..e27adcadc4522eef3b027ac1bf0ab1c51be5eb0b 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * lra.c (lra): After creating live ranges in preparation for call
+       to lra_inheritance, set live_p to true.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index 9309d5e44c2c7658c598892ab65f44aef3143a8f..ec122c7762fa93afc2f9a97cfe6f9df94794cf92 100644 (file)
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -2297,6 +2297,7 @@ lra (FILE *f)
                     actual_call_used_reg_set,  which is needed during
                     lra_inheritance.  */
                  lra_create_live_ranges (true, true);
+                 live_p = true;
                }
              lra_inheritance ();
            }