aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2016-10-09 20:50:52 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-10-09 20:50:52 +0000
commit772ebeb5410a506ca4971a5ead3f7c67f18d3aa1 (patch)
tree54593bdb4ea125c194ef4cc0dda889349740f7e6 /gcc
parent676b4899d6af647d136b445dc4a4b4d1d1e38e57 (diff)
downloadgcc-772ebeb5410a506ca4971a5ead3f7c67f18d3aa1.zip
gcc-772ebeb5410a506ca4971a5ead3f7c67f18d3aa1.tar.gz
gcc-772ebeb5410a506ca4971a5ead3f7c67f18d3aa1.tar.bz2
* gen-pass-instances.awk: Remove GNUism.
From-SVN: r240904
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/gen-pass-instances.awk11
2 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cef7679..a6c2fcd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk
index 6f7794e..dcbe20f 100644
--- a/gcc/gen-pass-instances.awk
+++ b/gcc/gen-pass-instances.awk
@@ -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;