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
5f11ca4c
Commit
5f11ca4c
authored
Aug 05, 1993
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cygnus<->FSF merge, added g++ driver in C
From-SVN: r5080
parent
a6388960
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
gcc/Makefile.in
+25
-8
No files found.
gcc/Makefile.in
View file @
5f11ca4c
...
@@ -420,7 +420,7 @@ STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
...
@@ -420,7 +420,7 @@ STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
stamp-attr stamp-attrtab stamp-opinit stamp-proto
\
stamp-attr stamp-attrtab stamp-opinit stamp-proto
\
genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
\
genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
\
genattrtab genattr genopinit
\
genattrtab genattr genopinit
\
$(GCC_PASSES)
$(EXTRA_PARTS)
$(EXTRA_PROGRAMS)
gcc-cross cccp
\
$(GCC_PASSES)
$(EXTRA_PARTS)
$(EXTRA_PROGRAMS)
gcc-cross cccp
g++ g++-cross
\
cc1plus cc1obj enquire protoize unprotoize specs collect2
$(USE_COLLECT2)
cc1plus cc1obj enquire protoize unprotoize specs collect2
$(USE_COLLECT2)
# Members of libgcc1.a.
# Members of libgcc1.a.
...
@@ -469,9 +469,9 @@ all.internal: start.encap rest.encap
...
@@ -469,9 +469,9 @@ all.internal: start.encap rest.encap
# This is what to compile if making a cross-compiler.
# This is what to compile if making a cross-compiler.
# Note that we can compile enquire using the cross-compiler just build,
# Note that we can compile enquire using the cross-compiler just build,
# although we can't run it on this machine.
# although we can't run it on this machine.
all.cross
:
native gcc-cross specs $(LIBGCC) stmp-headers $(STMP_FIXPROTO) cross-test enquire $(EXTRA_PARTS)
all.cross
:
native gcc-cross
g++-cross
specs $(LIBGCC) stmp-headers $(STMP_FIXPROTO) cross-test enquire $(EXTRA_PARTS)
# This is what to compile if making gcc with a cross-compiler.
# This is what to compile if making gcc with a cross-compiler.
all.build
:
native xgcc $(EXTRA_PARTS)
all.build
:
native xgcc
g++
$(EXTRA_PARTS)
# This is what must be made before installing GCC and converting libraries.
# This is what must be made before installing GCC and converting libraries.
start.encap
:
native xgcc specs $(LIBGCC1) xlimits.h
start.encap
:
native xgcc specs $(LIBGCC1) xlimits.h
# Use this to make a GCC that will be used only to recompile GCC.
# Use this to make a GCC that will be used only to recompile GCC.
...
@@ -526,12 +526,21 @@ xgcc: gcc.o version.o $(LIBDEPS)
...
@@ -526,12 +526,21 @@ xgcc: gcc.o version.o $(LIBDEPS)
specs
:
xgcc
specs
:
xgcc
$(GCC_FOR_TARGET)
-dumpspecs
>
specs
$(GCC_FOR_TARGET)
-dumpspecs
>
specs
# Create the compiler driver for g++.
g++
:
g++.o $(LIBDEPS)
$(CC)
$(ALL_CFLAGS)
$(LDFLAGS)
-o
g++ g++.o
$(LIBS)
# We do want to create an executable named `xgcc', so we can use it to
# We do want to create an executable named `xgcc', so we can use it to
# compile libgcc2.a.
# compile libgcc2.a.
# Also create gcc-cross, so that install-common will install properly.
# Also create gcc-cross, so that install-common will install properly.
gcc-cross
:
xgcc
gcc-cross
:
xgcc
cp xgcc gcc-cross
cp xgcc gcc-cross
# Create a version of the g++ driver which calls the cross-compiler.
g++-cross
:
$(srcdir)/g++.c
$(CC)
$(ALL_CFLAGS)
$(INCLUDES)
$(LDFLAGS)
-o
g++-cross
\
-DGCC_NAME
=
\"
$(target)
-gcc
\"
$(srcdir)
/g++.c version.o
$(LIBS)
cc1
:
$(P) $(C_OBJS) $(OBJS) $(LIBDEPS)
cc1
:
$(P) $(C_OBJS) $(OBJS) $(LIBDEPS)
$(CC)
$(ALL_CFLAGS)
$(LDFLAGS)
-o
cc1
$(C_OBJS)
$(OBJS)
$(LIBS)
$(CC)
$(ALL_CFLAGS)
$(LDFLAGS)
-o
cc1
$(C_OBJS)
$(OBJS)
$(LIBS)
...
@@ -1616,7 +1625,7 @@ install-dir:
...
@@ -1616,7 +1625,7 @@ install-dir:
# Install the compiler executables built during cross compilation.
# Install the compiler executables built during cross compilation.
# Deps on $(srcdir)/g++ $(srcdir)/c++ would be natural here,
# Deps on $(srcdir)/g++ $(srcdir)/c++ would be natural here,
# but the latter would get confused with the target `c++'.
# but the latter would get confused with the target `c++'.
install-common
:
native install-dir xgcc $(EXTRA_PARTS)
install-common
:
native install-dir xgcc
g++
$(EXTRA_PARTS)
for
file
in
$(COMPILERS)
;
do
\
for
file
in
$(COMPILERS)
;
do
\
if
[
-f
$$
file
]
;
then
\
if
[
-f
$$
file
]
;
then
\
rm
-f
$(libsubdir)
/
$$
file
;
\
rm
-f
$(libsubdir)
/
$$
file
;
\
...
@@ -1644,6 +1653,13 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
...
@@ -1644,6 +1653,13 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
rm
-f
$(tooldir)/bin/gcc;
\
rm
-f
$(tooldir)/bin/gcc;
\
$(INSTALL_PROGRAM)
gcc-cross
$(tooldir)/bin/gcc;
\
$(INSTALL_PROGRAM)
gcc-cross
$(tooldir)/bin/gcc;
\
else
true;
fi;
\
else
true;
fi;
\
if
[
-f
cc1plus
]
;
then
\
rm
-f
$(bindir)/$(target)-g++;
\
$(INSTALL_PROGRAM)
g++-cross
$(bindir)/$(target)-g++;
\
chmod
a+x
$(bindir)/$(target)-g++;
\
rm
-f
$(bindir)/$(target)-c++;
\
ln
$(bindir)/$(target)-g++
$(bindir)/$(target)-c++;
\
fi
;
\
else
\
else
\
rm
-f
$(bindir)/gcc;
\
rm
-f
$(bindir)/gcc;
\
$(INSTALL_PROGRAM)
xgcc
$(bindir)/gcc;
\
$(INSTALL_PROGRAM)
xgcc
$(bindir)/gcc;
\
...
@@ -1663,10 +1679,11 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
...
@@ -1663,10 +1679,11 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
chmod
a-x
$(libsubdir)/SYSCALLS.c.X;
\
chmod
a-x
$(libsubdir)/SYSCALLS.c.X;
\
fi
fi
-if
[
-f
cc1plus
]
;
then
\
-if
[
-f
cc1plus
]
;
then
\
rm
-f
$(bindir)/c++
;
\
rm
-f
$(bindir)/g++;
\
$(INSTALL_PROGRAM)
$(srcdir)/c++
$(bindir)/c++
;
\
$(INSTALL_PROGRAM)
g++
$(bindir)/g++;
\
rm
-f
$(bindir)/g++
;
\
chmod
a+x
$(bindir)/g++;
\
$(INSTALL_PROGRAM)
$(srcdir)/g++
$(bindir)/g++
;
\
rm
-f
$(bindir)/c++;
\
ln
$(bindir)/g++
$(bindir)/c++;
\
fi
fi
-rm
-f
$(libsubdir)/cpp
-rm
-f
$(libsubdir)/cpp
$(INSTALL_PROGRAM)
cpp
$(libsubdir)/cpp
$(INSTALL_PROGRAM)
cpp
$(libsubdir)/cpp
...
...
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