+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
{
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];
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])
{
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