summaryrefslogtreecommitdiff
path: root/gcc/config/m32r/t-m32r
diff options
context:
space:
mode:
authorclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-09 14:57:50 +0000
committerclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-09 14:57:50 +0000
commit6f9235e4e674c2cf76f434835a4e3717fd37a107 (patch)
tree26096eb78709ecc00a9a89bfd146f7b77bf98a18 /gcc/config/m32r/t-m32r
parentb174d167bd00c57c4a1f2963fd44bdc2eb872603 (diff)
downloadgcc-6f9235e4e674c2cf76f434835a4e3717fd37a107.tar.gz
* m32r.c: Add support for m32rx processor.
* m32r.h: Ditto. * m32r.md: Ditto. * t-m32r: Ditto. * m32r-protos.h: Add prototypes for m32rx functions. * doc/invoke.texi: Document -m32rx option. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32r/t-m32r')
-rw-r--r--gcc/config/m32r/t-m32r19
1 files changed, 16 insertions, 3 deletions
diff --git a/gcc/config/m32r/t-m32r b/gcc/config/m32r/t-m32r
index 79e89458387..e7d56affeff 100644
--- a/gcc/config/m32r/t-m32r
+++ b/gcc/config/m32r/t-m32r
@@ -36,17 +36,30 @@ crtfini.o: $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
-DCRT_FINI -finhibit-size-directive -fno-inline-functions \
-g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -o crtfini.o
+m32rx:
+ mkdir $@
+
+m32rx/crtinit.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
+ -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
+ -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
+ -o m32rx/crtinit.o
+
+m32rx/crtfini.o: m32rx $(srcdir)/config/m32r/initfini.c $(GCC_PASSES) $(CONFIG_H)
+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
+ -DCRT_FINI -finhibit-size-directive -fno-inline-functions \
+ -g0 -mmodel=medium -c $(srcdir)/config/m32r/initfini.c -m32rx \
+ -o m32rx/crtfini.o
# -mmodel={small,medium} requires separate libraries.
# We don't build libraries for the large model, instead we use the medium
# libraries. The only difference is that the large model can handle jumps
# more than 26 signed bits away.
-MULTILIB_OPTIONS = mmodel=small/mmodel=medium
-MULTILIB_DIRNAMES = small medium
+MULTILIB_OPTIONS = mmodel=small/mmodel=medium m32r/m32rx
+MULTILIB_DIRNAMES = small medium m32r m32rx
MULTILIB_MATCHES = mmodel?medium=mmodel?large
-
# Set MULTILIB_EXTRA_OPTS so shipped libraries have small data in .sdata and
# SHN_M32R_SCOMMON.
# This is important for objects referenced in system header files.