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
44d65d84
Commit
44d65d84
authored
Jul 11, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(libgcc1-asm.a): New target for building libgcc1.a in cross compilers.
From-SVN: r7724
parent
012a47cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
gcc/Makefile.in
+26
-0
No files found.
gcc/Makefile.in
View file @
44d65d84
...
@@ -740,6 +740,32 @@ libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
...
@@ -740,6 +740,32 @@ libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status
done
done
mv
tmplibgcc1.a
libgcc1.a
mv
tmplibgcc1.a
libgcc1.a
# Build libgcc1.a from assembler source. LIB1ASMFUNCS is the list of
# functions. LIB1ASMSRC is the name of the source file in the config
# subdirectory.
libgcc1-asm.a
:
libgcc2.ready config.status $(srcdir)/config/$(LIB1ASMSRC)
-
rm
-f
tmplibgcc1.a libgcc1.S
cp
$(srcdir)
/config/
$(LIB1ASMSRC)
libgcc1.S
# Actually build it in tmplibgcc1.a, then rename at end,
# so that libgcc1-asm.a itself remains nonexistent if compilation is aborted.
# -e causes any failing command to make this rule fail.
# -e doesn't work in certain shells, so we test $$? as well.
# lynx has a broken ar, it always complains when the initial library is
# empty, thus this command works only if we don't do -e
# There is a trailing backslash (\) deleted from the following line.
# set -e;
for
name
in
$(LIB1ASMFUNCS);
\
do
\
echo
$${name};
\
$(GCC_FOR_TARGET)
$(LIBGCC2_CFLAGS)
$(INCLUDES)
-c
-DL$${name}
libgcc1.S;
\
if
[
$$?
-eq
0
]
;
then
true;
else
exit
1;
fi;
\
mv
libgcc1.o
$${name}.o;
\
$(AR)
$(AR_FLAGS)
tmplibgcc1.a
$${name}.o;
\
rm
-f
$${name}.o;
\
done
-rm
-f
libgcc1.S
mv
tmplibgcc1.a
libgcc1-asm.a
# Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
# Compiling libgcc2.a requires making sure that cc1, etc. have been compiled.
# But recompiling cc1 should not force recompilation of libgcc2.a.
# But recompiling cc1 should not force recompilation of libgcc2.a.
# If you want to force recompilation, delete libgcc2.a.
# If you want to force recompilation, delete libgcc2.a.
...
...
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