var-tracking.c (variable_tracking_main_1): Don't track variables for targetm.no_regis...
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Mar 2015 13:19:00 +0000 (14:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Mar 2015 13:19:00 +0000 (14:19 +0100)
* var-tracking.c (variable_tracking_main_1): Don't track
variables for targetm.no_register_allocation targets.

From-SVN: r221693

gcc/ChangeLog
gcc/var-tracking.c

index 5ea273d0396fbec99ce2fc0daae45cdc2e2b735f..34a2048f900d7ef9df954bc8e3b189ea0a793a9b 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * var-tracking.c (variable_tracking_main_1): Don't track
+       variables for targetm.no_register_allocation targets.
+
 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
index da4c61e7d5684b4f62da7f4d633e85957570ade1..18eff20355f1bd888d9d218c81c3dce4a569140c 100644 (file)
@@ -10311,7 +10311,10 @@ variable_tracking_main_1 (void)
 {
   bool success;
 
-  if (flag_var_tracking_assignments < 0)
+  if (flag_var_tracking_assignments < 0
+      /* Var-tracking right now assumes the IR doesn't contain
+        any pseudos at this point.  */
+      || targetm.no_register_allocation)
     {
       delete_debug_insns ();
       return 0;