home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / mips / xm-mips.h < prev    next >
C/C++ Source or Header  |  1995-06-15  |  2KB  |  82 lines

  1. /* Configuration for GNU C-compiler for MIPS Rx000 family
  2.    Copyright (C) 1989, 1990, 1991, 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  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
  64. #ifndef __GNUC__
  65. #define USE_C_ALLOCA
  66.  
  67. extern char * alloca ();
  68.  
  69. /* for the emacs version of alloca */
  70. #define STACK_DIRECTION    -1
  71. #endif
  72. #endif /* not MIPS_OVERRIDE_ALLOCA */
  73.  
  74. /* Say if we have vprintf.  BSD Mips targets probably don't have vfprintf.  */
  75. #if defined(__OSF1__) || defined(__OSF__) || defined(__osf__) || defined(bsd4_4)
  76. #define HAVE_VPRINTF
  77. #define HAVE_PUTENV
  78.  
  79. #else
  80. #define NO_STAB_H        /* mips doesn't typically have stab.h */
  81. #endif
  82.