]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/mips/xm-mips.h
Merge from gcc-2.8
[thirdparty/gcc.git] / gcc / config / mips / xm-mips.h
CommitLineData
48f50d01 1/* Configuration for GNU C-compiler for MIPS Rx000 family
956d6950 2 Copyright (C) 1989, 1990, 1991, 1993, 1997 Free Software Foundation, Inc.
48f50d01
MM
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
0e29e3c9
RK
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
48f50d01
MM
20
21
22/* #defines that need visibility everywhere. */
23#define FALSE 0
24#define TRUE 1
25
26/* This describes the machine the compiler is hosted on. */
27#define HOST_BITS_PER_CHAR 8
28#define HOST_BITS_PER_SHORT 16
29#define HOST_BITS_PER_INT 32
30#define HOST_BITS_PER_LONG 32
31#define HOST_BITS_PER_LONGLONG 64
32
33#if !defined(MIPSEL) && !defined(__MIPSEL__)
34#define HOST_WORDS_BIG_ENDIAN
35#endif
36
37/* Enable host-conditionals for MIPS machines. */
38#ifndef MIPS
39#define MIPS 1
40#endif
41
42/* A code distinguishing the floating point format of the host
43 machine. There are three defined values: IEEE_FLOAT_FORMAT,
44 VAX_FLOAT_FORMAT, and UNKNOWN_FLOAT_FORMAT. */
45
46#define HOST_FLOAT_FORMAT IEEE_FLOAT_FORMAT
47
48/* target machine dependencies.
49 tm.h is a symbolic link to the actual target specific file. */
50#include "tm.h"
51
52/* Arguments to use with `exit'. */
53#define SUCCESS_EXIT_CODE 0
54#define FATAL_EXIT_CODE 33
55
56#ifndef __GNUC__
57/* The MIPS compiler gets it wrong, and treats enumerated bitfields
58 as signed quantities, making it impossible to use an 8-bit enum
59 for compiling GNU C++. */
60#define ONLY_INT_FIELDS 1
61#endif
62
63#ifndef MIPS_OVERRIDE_ALLOCA
f62f398a 64#ifndef __GNUC__
48f50d01 65#define USE_C_ALLOCA
f62f398a 66
c52c47b4
JL
67#ifdef __STDC__
68extern void * alloca ();
69#else
48f50d01 70extern char * alloca ();
c52c47b4 71#endif
48f50d01
MM
72
73/* for the emacs version of alloca */
74#define STACK_DIRECTION -1
75#endif
76#endif /* not MIPS_OVERRIDE_ALLOCA */
77
78/* Say if we have vprintf. BSD Mips targets probably don't have vfprintf. */
0a1f8ce2 79#if defined(__OSF1__) || defined(__OSF__) || defined(__osf__) || defined(bsd4_4)
11051217
RS
80
81#else
82#define NO_STAB_H /* mips doesn't typically have stab.h */
48f50d01 83#endif