* gen-pass-instances.awk: Remove GNUism.
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 9 Oct 2016 20:50:52 +0000 (20:50 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 9 Oct 2016 20:50:52 +0000 (20:50 +0000)
From-SVN: r240904

gcc/ChangeLog
gcc/gen-pass-instances.awk

index cef7679852ecbb70fb804b06815d429c0048b9e7..a6c2fcdbef34c686383996a847d75f3c5b89fef9 100644 (file)
@@ -1,7 +1,11 @@
+2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gen-pass-instances.awk: Remove GNUism.
+
 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
 
-       * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to NULL of
-       (*ipcp_transformations)][node->uid].
+       * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
+       NULL of (*ipcp_transformations)][node->uid].
 
 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
 
index 6f7794eb402f55463b159d5a7aa090f799b189bd..dcbe20f245e7007910be6dfca8fe55fda4969636 100644 (file)
@@ -193,7 +193,6 @@ function replace_pass(line, fnname,                 num, i)
 }
 
 END {
-  delete pass_counts;
   for (i = 1; i < lineno; i++)
     {
       ret = parse_line(lines[i], "NEXT_PASS");
@@ -203,13 +202,13 @@ END {
          pass_name = args[1];
          with_arg = args[2];
 
-         # Set pass_counts
-         if (pass_name in pass_counts)
-           pass_counts[pass_name]++;
+         # Set pass_final_counts
+         if (pass_name in pass_final_counts)
+           pass_final_counts[pass_name]++;
          else
-           pass_counts[pass_name] = 1;
+           pass_final_counts[pass_name] = 1;
 
-         pass_num = pass_counts[pass_name];
+         pass_num = pass_final_counts[pass_name];
 
          # Print call expression with extra pass_num argument
          printf "%s", prefix;