Commit 984fa0ea by Jakub Jelinek Committed by Jakub Jelinek

gen-pass-instances.awk (adjust_linenos): INcrement pass_lines[p] by increment…

gen-pass-instances.awk (adjust_linenos): INcrement pass_lines[p] by increment rather than double it.

	* gen-pass-instances.awk (adjust_linenos): INcrement pass_lines[p]
	by increment rather than double it.
	(insert_remove_pass): Strip leading whitespace from args[3].  Don't
	emit a space before args[4].
	(END): Don't emit a space before with_arg.

From-SVN: r241580
parent 32502b58
2016-10-26 Jakub Jelinek <jakub@redhat.com>
* gen-pass-instances.awk (adjust_linenos): INcrement pass_lines[p]
by increment rather than double it.
(insert_remove_pass): Strip leading whitespace from args[3]. Don't
emit a space before args[4].
(END): Don't emit a space before with_arg.
2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
......
......@@ -90,7 +90,7 @@ function adjust_linenos(above, increment, p, i)
{
for (p in pass_lines)
if (pass_lines[p] >= above)
pass_lines[p] += pass_lines[p];
pass_lines[p] += increment;
if (increment > 0)
for (i = lineno - 1; i >= above; i--)
lines[i + increment] = lines[i];
......@@ -100,16 +100,18 @@ function adjust_linenos(above, increment, p, i)
lineno += increment;
}
function insert_remove_pass(line, fnname)
function insert_remove_pass(line, fnname, arg3)
{
parse_line($0, fnname);
pass_name = args[1];
if (pass_name == "PASS")
return 1;
pass_num = args[2] + 0;
new_line = prefix "NEXT_PASS (" args[3];
arg3 = args[3];
sub(/^[ \t]*/, "", arg3);
new_line = prefix "NEXT_PASS (" arg3;
if (args[4])
new_line = new_line ", " args[4];
new_line = new_line "," args[4];
new_line = new_line ")" postfix;
if (!pass_lines[pass_name, pass_num])
{
......@@ -218,7 +220,7 @@ END {
printf "NEXT_PASS";
printf " (%s, %s", pass_name, pass_num;
if (with_arg)
printf ", %s", with_arg;
printf ",%s", with_arg;
printf ")%s\n", postfix;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment