Commit 51c0d897 by Stan Cox

(do_spec_1): Allow -A in %[Spec].

From-SVN: r12852
parent 8524774e
...@@ -3585,6 +3585,8 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3585,6 +3585,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
every -D and at the end of each arg, */ every -D and at the end of each arg, */
while (1) while (1)
{ {
int flag;
if (! strncmp (y, "-D", 2)) if (! strncmp (y, "-D", 2))
{ {
*x++ = '-'; *x++ = '-';
...@@ -3592,16 +3594,18 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -3592,16 +3594,18 @@ do_spec_1 (spec, inswitch, soft_matched_part)
*x++ = '_'; *x++ = '_';
*x++ = '_'; *x++ = '_';
y += 2; y += 2;
flag = 1;
continue;
} }
else if (*y == ' ' || *y == 0) else if (flag && (*y == ' ' || *y == '\t' || *y == '='
|| *y == '}' || *y == 0))
{ {
*x++ = '_'; *x++ = '_';
*x++ = '_'; *x++ = '_';
if (*y == 0) flag = 0;
break;
else
*x++ = *y++;
} }
if (*y == 0)
break;
else else
*x++ = *y++; *x++ = *y++;
} }
......
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