OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
968a1ba
)
(do_spec_1): Allow -A in %[Spec].
author
coxs
<coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 1996 16:54:10 +0000
(16:54 +0000)
committer
coxs
<coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 1996 16:54:10 +0000
(16:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12852
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index
081596f
..
0b84a83
100644
(file)
--- a/
gcc/gcc.c
+++ b/
gcc/gcc.c
@@
-3585,6
+3585,8
@@
do_spec_1 (spec, inswitch, soft_matched_part)
every -D and at the end of each arg, */
while (1)
{
+ int flag;
+
if (! strncmp (y, "-D", 2))
{
*x++ = '-';
@@
-3592,16
+3594,18
@@
do_spec_1 (spec, inswitch, soft_matched_part)
*x++ = '_';
*x++ = '_';
y += 2;
+ flag = 1;
+ continue;
}
- else if (*y == ' ' || *y == 0)
+ else if (flag && (*y == ' ' || *y == '\t' || *y == '='
+ || *y == '}' || *y == 0))
{
*x++ = '_';
*x++ = '_';
- if (*y == 0)
- break;
- else
- *x++ = *y++;
+ flag = 0;
}
+ if (*y == 0)
+ break;
else
*x++ = *y++;
}