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
a2dfec99
Commit
a2dfec99
authored
Jul 21, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(link_command_spec): Move %{T*} after %{L*} and %D.
From-SVN: r4951
parent
dc4f75b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
gcc/gcc.c
+9
-6
No files found.
gcc/gcc.c
View file @
a2dfec99
...
...
@@ -576,31 +576,34 @@ static int n_default_compilers
/* -u* was put back because both BSD and SysV seem to support it. */
/* %{static:} simply prevents an error message if the target machine
doesn't handle -static. */
/* We want %{T*} after %{L*} and %D so that it can be used to specify linker
scripts which exist in user specified directories, or in standard
directories. */
#ifdef LINK_LIBGCC_SPECIAL_1
/* Have gcc do the search for libgcc.a, but generate -L options as usual. */
static
char
*
link_command_spec
=
"\
%{!fsyntax-only: \
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{
T*} %{
t} %{u*} %{x} %{z}\
%{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
%{L*} %D %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}
\n
}}}}}}"
;
%{L*} %D %
{T*} %
o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}
\n
}}}}}}"
;
#else
#ifdef LINK_LIBGCC_SPECIAL
/* Have gcc do the search for libgcc.a, and don't generate -L options. */
static
char
*
link_command_spec
=
"\
%{!fsyntax-only: \
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{
T*} %{
t} %{u*} %{x} %{z}\
%{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
%{L*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}
\n
}}}}}}"
;
%{L*} %
{T*} %
o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}
\n
}}}}}}"
;
#else
/* Use -L and have the linker do the search for -lgcc. */
static
char
*
link_command_spec
=
"\
%{!fsyntax-only: \
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{
T*} %{
t} %{u*} %{x} %{z}\
%{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
%{L*} %D %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}
\n
}}}}}}"
;
%{L*} %D %
{T*} %
o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}
\n
}}}}}}"
;
#endif
#endif
...
...
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