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
232830b7
Commit
232830b7
authored
Sep 04, 2003
by
Nick Clifton
Committed by
Nick Clifton
Sep 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for v850e1 processor - a variant of the v850e.
From-SVN: r71063
parent
c490cc89
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
4 deletions
+44
-4
gcc/ChangeLog
+10
-0
gcc/config/v850/t-v850
+5
-0
gcc/config/v850/t-v850e
+4
-0
gcc/config/v850/v850.h
+14
-0
gcc/doc/invoke.texi
+11
-4
No files found.
gcc/ChangeLog
View file @
232830b7
2003-09-04 Nick Clifton <nickc@redhat.com>
* config.gcc: Add v850e1 target. Allow --with-cpu to accept
v850e1.
* config/v850/v850.h: Accept v850e1 as a default CPU.
Accept -mv850e1 as a command line option.
* doc/invoke.texi: Document new -mv850e1 command line switch.
* config/v850/t-v850: Treat -mv850e1 as a multilib alias for
-mv850e.
2003-09-04 Nick Clifton <nickc@redhat.com>
* config.gcc (v850e-*-*): Use t-v850e makefile fragment.
* config/v850/t-v850: Only produce one extra multilib - for
the v850e.
...
...
gcc/config/v850/t-v850
View file @
232830b7
...
...
@@ -84,9 +84,14 @@ fp-bit.c: $(srcdir)/config/fp-bit.c
MULTILIB_OPTIONS = mv850e
MULTILIB_DIRNAMES = v850e
INSTALL_LIBGCC = install-multilib
MULTILIB_MATCHES = mv850e=mv850e1
TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow
v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h toplev.h $(GGC_H) $(TM_P_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/v850/v850-c.c
# Local Variables:
# mode: Makefile
# End:
gcc/config/v850/t-v850e
View file @
232830b7
...
...
@@ -90,3 +90,7 @@ TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsign
v850-c.o: $(srcdir)/config/v850/v850-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(CPPLIB_H) $(TREE_H) c-pragma.h toplev.h $(GGC_H) $(TM_P_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/v850/v850-c.c
# Local Variables:
# mode: Makefile
# End:
gcc/config/v850/v850.h
View file @
232830b7
...
...
@@ -32,6 +32,7 @@
#define TARGET_CPU_generic 1
#define TARGET_CPU_v850e 2
#define TARGET_CPU_v850e1 3
#ifndef TARGET_CPU_DEFAULT
#define TARGET_CPU_DEFAULT TARGET_CPU_generic
...
...
@@ -56,6 +57,17 @@
#define TARGET_VERSION fprintf (stderr, " (NEC V850E)");
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_v850e1
#undef MASK_DEFAULT
#define MASK_DEFAULT MASK_V850E
/* No practical difference. */
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC "%{!mv*:-mv850e1}"
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC "%{!mv*:-D__v850e1__} %{mv850e1:-D__v850e1__}"
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (NEC V850E1)");
#endif
#define ASM_SPEC "%{mv*:-mv%*}"
#define CPP_SPEC "%{mv850e:-D__v850e__} %{mv850:-D__v850__} %(subtarget_cpp_spec)"
...
...
@@ -176,6 +188,8 @@ extern int target_flags;
{ "v850", MASK_V850, \
N_("Compile for the v850 processor") }, \
{ "v850", -(MASK_V850 ^ MASK_CPU), "" }, \
{ "v850e1", MASK_V850E, N_("Compile for v850e1 processor") }, \
{ "v850e1", -(MASK_V850E ^ MASK_CPU), "" },
/* Make sure that the other bits are cleared. */
\
{ "v850e", MASK_V850E, N_("Compile for v850e processor") }, \
{ "v850e", -(MASK_V850E ^ MASK_CPU), "" },
/* Make sure that the other bits are cleared. */
\
{ "small-sld", MASK_SMALL_SLD, N_("Enable the use of the short load instructions") }, \
...
...
gcc/doc/invoke.texi
View file @
232830b7
...
...
@@ -571,6 +571,7 @@ in the following sections.
-
mtda
=@
var
{
n
}
-
msda
=@
var
{
n
}
-
mzda
=@
var
{
n
}
@
gol
-
mapp
-
regs
-
mno
-
app
-
regs
@
gol
-
mdisable
-
callt
-
mno
-
disable
-
callt
@
gol
-
mv850e1
@
gol
-
mv850e
@
gol
-
mv850
-
mbig
-
switch
}
...
...
@@ -9700,14 +9701,20 @@ the compiler. This setting is the default.
@opindex mno-app-regs
This option will cause r2 and r5 to be treated as fixed registers.
@item -mv850e1
@opindex mv850e1
Specify that the target processor is the V850E1. The preprocessor
constants @samp{__v850e1__} and @samp{__v850e__} will be defined if
this option is used.
@item -mv850e
@opindex mv850e
Specify that the target processor is the V850E. The preprocessor
constant @samp{__v850e__} will be defined if this option is used.
If neither @option{-mv850} nor @option{-mv850e}
are defined
then a default target processor will be chosen and the relevant
@samp{__v850*__} preprocessor constant will be defined.
If neither @option{-mv850} nor @option{-mv850e}
nor @option{-mv850e1}
are defined then a default target processor will be chosen and the
relevant
@samp{__v850*__} preprocessor constant will be defined.
The preprocessor constants @samp{__v850} and @samp{__v851__} are always
defined, regardless of which processor variant is the target.
...
...
@@ -9715,7 +9722,7 @@ defined, regardless of which processor variant is the target.
@item -mdisable-callt
@opindex mdisable-callt
This option will suppress generation of the CALLT instruction for the
v850e flavors of the v850 architecture. The default is
v850e
and v850e1
flavors of the v850 architecture. The default is
@option{-mno-disable-callt} which allows the CALLT instruction to be used.
@end table
...
...
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