Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
058d8521
Commit
058d8521
authored
Sep 03, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Use new loop var J to avoid conflict with I.
From-SVN: r2043
parent
9233f8ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
gcc/gcc.c
+8
-5
No files found.
gcc/gcc.c
View file @
058d8521
...
@@ -3197,6 +3197,7 @@ main (argc, argv)
...
@@ -3197,6 +3197,7 @@ main (argc, argv)
char
**
argv
;
char
**
argv
;
{
{
register
int
i
;
register
int
i
;
int
j
;
int
value
;
int
value
;
int
error_count
=
0
;
int
error_count
=
0
;
int
linker_was_run
=
0
;
int
linker_was_run
=
0
;
...
@@ -3371,16 +3372,18 @@ main (argc, argv)
...
@@ -3371,16 +3372,18 @@ main (argc, argv)
input_suffix
=
""
;
input_suffix
=
""
;
len
=
0
;
len
=
0
;
for
(
i
=
0
;
i
<
sizeof
cp
->
spec
/
sizeof
cp
->
spec
[
0
]
&&
cp
->
spec
[
i
];
i
++
)
for
(
j
=
0
;
j
<
sizeof
cp
->
spec
/
sizeof
cp
->
spec
[
0
];
j
++
)
len
+=
strlen
(
cp
->
spec
[
i
]);
if
(
cp
->
spec
[
j
])
len
+=
strlen
(
cp
->
spec
[
j
]);
p
=
(
char
*
)
xmalloc
(
len
+
1
);
p
=
(
char
*
)
xmalloc
(
len
+
1
);
len
=
0
;
len
=
0
;
for
(
i
=
0
;
i
<
sizeof
cp
->
spec
/
sizeof
cp
->
spec
[
0
]
&&
cp
->
spec
[
i
];
i
++
)
for
(
j
=
0
;
j
<
sizeof
cp
->
spec
/
sizeof
cp
->
spec
[
0
];
j
++
)
if
(
cp
->
spec
[
j
])
{
{
strcpy
(
p
+
len
,
cp
->
spec
[
i
]);
strcpy
(
p
+
len
,
cp
->
spec
[
j
]);
len
+=
strlen
(
cp
->
spec
[
i
]);
len
+=
strlen
(
cp
->
spec
[
j
]);
}
}
value
=
do_spec
(
p
);
value
=
do_spec
(
p
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment