aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-10-15 12:08:51 +0000
committerTom Wood <wood@gnu.org>1992-10-15 12:08:51 +0000
commitbf1fec41b9926d4c276011dcc8809b1ceff2d1ba (patch)
treecebdfc89c7f2ad784def78be9da33353733c2276 /gcc
parent8227896cf6130902ab124b04aceeae588545a5ae (diff)
downloadgcc-bf1fec41b9926d4c276011dcc8809b1ceff2d1ba.zip
gcc-bf1fec41b9926d4c276011dcc8809b1ceff2d1ba.tar.gz
gcc-bf1fec41b9926d4c276011dcc8809b1ceff2d1ba.tar.bz2
(CPP_PREDEFINES): Drop -Dmc88100.
(CPP_SPEC): Reproduce the predefine -Dmc88100 when -m88100 is in effect. Otherwise, supply -D__mc881x0__ when -m881x0 is in effect. From-SVN: r2474
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/m88k/luna.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/config/m88k/luna.h b/gcc/config/m88k/luna.h
index 203938d..0cf12b5 100644
--- a/gcc/config/m88k/luna.h
+++ b/gcc/config/m88k/luna.h
@@ -37,7 +37,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Macros to be automatically defined. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES \
- "-DMACH -Dmc88100 -Dm88k -Dunix -Dluna -Dluna88k -D__CLASSIFY_TYPE__=2"
+ "-DMACH -Dm88k -Dunix -Dluna -Dluna88k -D__CLASSIFY_TYPE__=2"
+
+/* If -m88000 is in effect, add -Dmc88000; similarly for -m88100 and -m88110.
+ However, reproduce the effect of -Dmc88100 previously in CPP_PREDEFINES.
+ Here, the CPU_DEFAULT is assumed to be -m88100. */
+#undef CPP_SPEC
+#define CPP_SPEC "%{m88000:-D__mc88000__} \
+ %{!m88000:%{m88100:%{m88110:-D__mc88000__}}} \
+ %{!m88000:%{!m88100:%{m88110:-D__mc88110__}}} \
+ %{!m88000:%{!m88110:%{!ansi:%{traditional:-Dmc88100}} \
+ -D__mc88100__ -D__mc88100}}"
/* Specify extra dir to search for include files. */
#undef SYSTEM_INCLUDE_DIR