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
9b226f90
Commit
9b226f90
authored
Oct 27, 1994
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_command): Don't forget to split -Wl arguments at commas.
From-SVN: r8350
parent
368dfd3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
gcc/gcc.c
+19
-2
No files found.
gcc/gcc.c
View file @
9b226f90
...
@@ -2583,7 +2583,12 @@ process_command (argc, argv)
...
@@ -2583,7 +2583,12 @@ process_command (argc, argv)
/* The +e options to the C++ front-end. */
/* The +e options to the C++ front-end. */
n_switches
++
;
n_switches
++
;
else
if
(
strncmp
(
argv
[
i
],
"-Wl,"
,
4
)
==
0
)
else
if
(
strncmp
(
argv
[
i
],
"-Wl,"
,
4
)
==
0
)
n_infiles
++
;
{
int
j
;
/* Split the argument at commas. */
for
(
j
=
3
;
argv
[
i
][
j
];
j
++
)
n_infiles
+=
(
argv
[
i
][
j
]
==
','
);
}
else
if
(
strcmp
(
argv
[
i
],
"-Xlinker"
)
==
0
)
else
if
(
strcmp
(
argv
[
i
],
"-Xlinker"
)
==
0
)
{
{
if
(
i
+
1
==
argc
)
if
(
i
+
1
==
argc
)
...
@@ -2794,8 +2799,20 @@ process_command (argc, argv)
...
@@ -2794,8 +2799,20 @@ process_command (argc, argv)
}
}
else
if
(
strncmp
(
argv
[
i
],
"-Wl,"
,
4
)
==
0
)
else
if
(
strncmp
(
argv
[
i
],
"-Wl,"
,
4
)
==
0
)
{
{
int
prev
,
j
;
/* Split the argument at commas. */
prev
=
4
;
for
(
j
=
4
;
argv
[
i
][
j
];
j
++
)
if
(
argv
[
i
][
j
]
==
','
)
{
infiles
[
n_infiles
].
language
=
spec_lang
;
infiles
[
n_infiles
++
].
name
=
save_string
(
argv
[
i
]
+
prev
,
j
-
prev
);
prev
=
j
+
1
;
}
/* Record the part after the last comma. */
infiles
[
n_infiles
].
language
=
spec_lang
;
infiles
[
n_infiles
].
language
=
spec_lang
;
infiles
[
n_infiles
++
].
name
=
argv
[
i
]
+
4
;
infiles
[
n_infiles
++
].
name
=
argv
[
i
]
+
prev
;
}
}
else
if
(
strcmp
(
argv
[
i
],
"-Xlinker"
)
==
0
)
else
if
(
strcmp
(
argv
[
i
],
"-Xlinker"
)
==
0
)
{
{
...
...
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