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
aac69a49
Commit
aac69a49
authored
Nov 25, 2000
by
Nick Clifton
Committed by
Nick Clifton
Nov 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for target specific, language specific object files.
From-SVN: r37726
parent
0a534f40
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
5 deletions
+56
-5
gcc/ChangeLog
+25
-0
gcc/Makefile.in
+8
-1
gcc/config.gcc
+8
-3
gcc/configure
+0
-0
gcc/configure.in
+2
-0
gcc/cp/Make-lang.in
+1
-1
gcc/tm.texi
+12
-0
No files found.
gcc/ChangeLog
View file @
aac69a49
2000-11-24 Nick Clifton <nickc@redhat.com>
* config.gcc (extra_objs): Remove duplicate description.
(c_target_objs): New variable. Contains target specific
object files for the gcc C compiler only.
(cxx_target_objs): New variable. Contains target specific
object files for the gxx C++ compiler only.
* configure.in (c_target_objs): Substitute in the makefile.
(cxx_target_objs): Substitute in the makefile.
* configure: Regenerate.
* Makefile.in (C_TARGET_OBJS): Define and initialise from
c_target_objs.
(CXX_TARGET_OBJS): Define and initialise from
cxx_target_objs.
(C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
* cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
* tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
about how the use of the 'c_lex' function requires the use of
the target specific, language specific object files feature of
the configuration mechanism.
Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gcc.c (process_command): Use F_OK, not R_OK.
* gcc.c (process_command): Use F_OK, not R_OK.
...
...
gcc/Makefile.in
View file @
aac69a49
...
@@ -713,9 +713,16 @@ SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \
...
@@ -713,9 +713,16 @@ SUBDIR_FLAGS_TO_PASS = $(ORDINARY_FLAGS_TO_PASS) \
#
#
# Lists of files for various purposes.
# Lists of files for various purposes.
# Target specific, C specific object file
C_TARGET_OBJS
=
@c_target_objs@
# Target specific, C++ specific object file
CXX_TARGET_OBJS
=
@cxx_target_objs@
# Language-specific object files for C and Objective C.
# Language-specific object files for C and Objective C.
C_AND_OBJC_OBJS
=
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o
\
C_AND_OBJC_OBJS
=
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o
\
c-convert.o c-aux-info.o c-common.o c-semantics.o c-dump.o
$(MAYBE_CPPLIB)
c-convert.o c-aux-info.o c-common.o c-semantics.o c-dump.o
$(MAYBE_CPPLIB)
\
$(C_TARGET_OBJS)
# Language-specific object files for C.
# Language-specific object files for C.
C_OBJS
=
c-parse.o c-lang.o
$(C_AND_OBJC_OBJS)
C_OBJS
=
c-parse.o c-lang.o
$(C_AND_OBJC_OBJS)
...
...
gcc/config.gcc
View file @
aac69a49
...
@@ -87,12 +87,15 @@
...
@@ -87,12 +87,15 @@
# host_extra_objs List of extra host-dependant objects that should
# host_extra_objs List of extra host-dependant objects that should
# be linked into the compiler proper.
# be linked into the compiler proper.
#
#
# extra_objs List of extra target-dependant objects that should
# be linked into the compiler proper.
#
# host_extra_gcc_objs List of extra host-dependant objects that should
# host_extra_gcc_objs List of extra host-dependant objects that should
# be linked into the gcc driver.
# be linked into the gcc driver.
#
#
# c_target_objs List of extra target-dependant objects that be
# linked into the C compiler only.
#
# cxx_target_objs List of extra target-dependant objects that be
# linked into the C++ compiler only.
#
# build_xm_defines List of macros to define when compiling for the
# build_xm_defines List of macros to define when compiling for the
# build machine.
# build machine.
#
#
...
@@ -171,6 +174,8 @@ extra_programs=
...
@@ -171,6 +174,8 @@ extra_programs=
extra_objs=
extra_objs=
extra_host_objs=
extra_host_objs=
extra_gcc_objs=
extra_gcc_objs=
c_target_objs=
cxx_target_objs=
xm_defines=
xm_defines=
float_format=
float_format=
# Set this to force installation and use of collect2.
# Set this to force installation and use of collect2.
...
...
gcc/configure
View file @
aac69a49
This diff is collapsed.
Click to expand it.
gcc/configure.in
View file @
aac69a49
...
@@ -1862,6 +1862,8 @@ AC_SUBST(symbolic_link)
...
@@ -1862,6 +1862,8 @@ AC_SUBST(symbolic_link)
AC_SUBST(thread_file)
AC_SUBST(thread_file)
AC_SUBST(tm_file_list)
AC_SUBST(tm_file_list)
AC_SUBST(will_use_collect2)
AC_SUBST(will_use_collect2)
AC_SUBST(c_target_objs)
AC_SUBST(cxx_target_objs)
AC_SUBST_FILE(target_overrides)
AC_SUBST_FILE(target_overrides)
...
...
gcc/cp/Make-lang.in
View file @
aac69a49
...
@@ -90,7 +90,7 @@ $(DEMANGLER_PROG): cxxmain.o underscore.o $(LIBDEPS)
...
@@ -90,7 +90,7 @@ $(DEMANGLER_PROG): cxxmain.o underscore.o $(LIBDEPS)
# The compiler itself.
# The compiler itself.
# Shared with C front end:
# Shared with C front end:
CXX_C_OBJS
=
c-common.o c-pragma.o c-semantics.o c-lex.o c-dump.o
CXX_C_OBJS
=
c-common.o c-pragma.o c-semantics.o c-lex.o c-dump.o
$(CXX_TARGET_OBJS)
# Language-specific object files.
# Language-specific object files.
CXX_OBJS
=
cp/call.o cp/decl.o cp/errfn.o cp/expr.o cp/pt.o cp/typeck2.o
\
CXX_OBJS
=
cp/call.o cp/decl.o cp/errfn.o cp/expr.o cp/pt.o cp/typeck2.o
\
...
...
gcc/tm.texi
View file @
aac69a49
...
@@ -7905,6 +7905,18 @@ Note that both @var{space} and @var{name} are case sensitive.
...
@@ -7905,6 +7905,18 @@ Note that both @var{space} and @var{name} are case sensitive.
For
an
example
use
of
this
routine
,
see
@file{
c4x
.
h
}
and
the
callback
For
an
example
use
of
this
routine
,
see
@file{
c4x
.
h
}
and
the
callback
routines
defined
in
@file{
c4x
.
c
}
.
routines
defined
in
@file{
c4x
.
c
}
.
Note
that
the
use
of
@code{
c_lex
}
is
specific
to
the
C
and
C
++
compilers
.
It
will
not
work
in
the
Java
or
Fortran
compilers
,
or
any
other
language
compilers
for
that
matter
.
Thus
if
@code{
c_lex
}
is
going
to
be
called
from
target
-
specific
code
,
it
must
only
be
done
so
when
building
hte
C
and
C
++
compilers
.
This
can
be
done
by
defining
the
variables
@code{
c_target_objs
}
and
@code{
cxx_target_objs
}
in
the
target
entry
in
the
@code{
config
.
gcc
}
file
.
These
variables
should
name
the
target
-
specific
,
language
-
specific
object
file
which
contains
the
code
that
uses
@code{
c_lex
}
.
Note
it
will
also
be
necessary
to
add
a
rule
to
the
makefile
fragment
pointed
to
by
@code{
tmake_file
}
that
shows
how
to
build
this
object
file
.
@end
deftypefun
@end
deftypefun
@deftypefun
void
cpp_register_pragma_space
(
cpp_reader
*
@var{
pfile
}
,
const
char
*
@var{
space
}
)
@deftypefun
void
cpp_register_pragma_space
(
cpp_reader
*
@var{
pfile
}
,
const
char
*
@var{
space
}
)
...
...
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