summaryrefslogtreecommitdiff
path: root/gcc/config/msp430/t-msp430
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2013-09-12 13:52:41 -0400
committerDJ Delorie <dj@gcc.gnu.org>2013-09-12 13:52:41 -0400
commitf6a83b4a9f8bb38ee24d244a4521ad6f8f77496c (patch)
treed690c25f951ef2f8c504a45d87bfd262e3ab226f /gcc/config/msp430/t-msp430
parent8369f38a6f3f797952452dc25cd148909e049ee6 (diff)
downloadgcc-f6a83b4a9f8bb38ee24d244a4521ad6f8f77496c.tar.gz
MAINTAINERS: Add Nick Clifton and DJ Delorie as msp430 maintainers.
* MAINTAINERS: Add Nick Clifton and DJ Delorie as msp430 maintainers. [gcc] * config/msp430/: New port. * config.gcc (msp430): Added. * doc/invoke.texi: Document MSP430 options. * doc/install.texi: Document msp430-elf * doc/md.texi: Document msp430-elf * doc/contrib.texi: Document msp430-elf [libgcc] * config.host (msp*-*-elf): New. * config/msp430/: New port. [contrib] * config-list.mk: Add msp430-elf. From-SVN: r202535
Diffstat (limited to 'gcc/config/msp430/t-msp430')
-rw-r--r--gcc/config/msp430/t-msp43043
1 files changed, 43 insertions, 0 deletions
diff --git a/gcc/config/msp430/t-msp430 b/gcc/config/msp430/t-msp430
new file mode 100644
index 00000000000..c7048378da4
--- /dev/null
+++ b/gcc/config/msp430/t-msp430
@@ -0,0 +1,43 @@
+# Makefile fragment for building GCC for the TI MSP430 target.
+# Copyright (C) 2012-2013 Free Software Foundation, Inc.
+# Contributed by Red Hat.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published
+# by the Free Software Foundation; either version 3, or (at your
+# option) any later version.
+#
+# GCC is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
+# the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with GCC; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
+
+# Enable multilibs:
+
+MULTILIB_OPTIONS = mmcu=msp430x mlarge
+MULTILIB_DIRNAMES = 430x large
+
+# Match msp430X with msp430x.
+MULTILIB_MATCHES = mmcu?msp430x=mmcu?msp430X
+
+# each supported MCU needs a line like this:
+# MULTILIB_MATCHES += mmcu?msp430x123=mmcu?msp430x
+
+# The only way I figured this out was to hack the script to SHOW me
+# what it's doing. It's non-obvious, but it matches the directory
+# structure of the multilib tree, but using the options, not the
+# directory names. A shell CASE statement is generated from these, so
+# the usual CASE wildcards are supported.
+
+MULTILIB_EXCEPTIONS = mlarge
+
+MULTILIB_EXTRA_OPTS =
+
+msp430-c.o: $(srcdir)/config/msp430/msp430-c.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_H)
+ $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<