aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i960
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2002-06-10 22:35:56 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-06-10 22:35:56 +0000
commita5381466722c3597aed833ae73b17350765f6659 (patch)
tree3704f68e05aa74e7be1ef03c29f2586c2068a4d5 /gcc/config/i960
parent852c6ec7ac379280e79ba706c60f2f1aad152f67 (diff)
downloadgcc-a5381466722c3597aed833ae73b17350765f6659.zip
gcc-a5381466722c3597aed833ae73b17350765f6659.tar.gz
gcc-a5381466722c3597aed833ae73b17350765f6659.tar.bz2
Makefile.in (MACHMODE_H): Add @extra_modes_file@.
* Makefile.in (MACHMODE_H): Add @extra_modes_file@. * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def exists, substitute its pathname as @extra_modes_file@, define EXTRA_MODES_FILE to be an appropriate string to #include it with, and define EXTRA_CC_MODES to 1. * machmode.def: Update comments. Include EXTRA_MODES_FILE if it's defined. Get rid of redundancy in calling sequence for CC; don't use it to define CCmode, to avoid a warning. * libgcc2.c: Include symcat.h for the sake of machmode.def. * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def, i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def, pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def: New files. * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h, pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES. * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for defining extra CC modes. From-SVN: r54478
Diffstat (limited to 'gcc/config/i960')
-rw-r--r--gcc/config/i960/i960-modes.def30
-rw-r--r--gcc/config/i960/i960.h8
2 files changed, 30 insertions, 8 deletions
diff --git a/gcc/config/i960/i960-modes.def b/gcc/config/i960/i960-modes.def
new file mode 100644
index 0000000..05fd40d
--- /dev/null
+++ b/gcc/config/i960/i960-modes.def
@@ -0,0 +1,30 @@
+/* Definitions of target machine for GNU compiler, for Intel 80960
+ Copyright (C) 2002 Free Software Foundation, Inc.
+ Contributed by Steven McGeady, Intel Corp.
+ Additional Work by Glenn Colon-Bonet, Jonathan Shapiro, Andy Wilson
+ Converted to GCC 2.0 by Jim Wilson and Michael Tiemann, Cygnus Support.
+
+This file is part of GNU CC.
+
+GNU CC 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 2, or (at your option)
+any later version.
+
+GNU CC 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 GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+/* Add any extra modes needed to represent the condition code.
+
+ Also, signed and unsigned comparisons are distinguished, as
+ are operations which are compatible with chkbit insns. */
+
+CC (CC_UNS)
+CC (CC_CHK)
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h
index 4209a68..54dc02f 100644
--- a/gcc/config/i960/i960.h
+++ b/gcc/config/i960/i960.h
@@ -1200,14 +1200,6 @@ struct cum_args { int ca_nregparms; int ca_nstackparms; };
extern struct rtx_def *i960_compare_op0, *i960_compare_op1;
-/* Add any extra modes needed to represent the condition code.
-
- Also, signed and unsigned comparisons are distinguished, as
- are operations which are compatible with chkbit insns. */
-#define EXTRA_CC_MODES \
- CC(CC_UNSmode, "CC_UNS") \
- CC(CC_CHKmode, "CC_CHK")
-
/* Given a comparison code (EQ, NE, etc.) and the first operand of a COMPARE,
return the mode to be used for the comparison. For floating-point, CCFPmode
should be used. CC_NOOVmode should be used when the first operand is a