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 / dec-bsd.h < prev    next >
C/C++ Source or Header  |  1995-07-28  |  3KB  |  84 lines

  1. /* Definitions for DECstation running BSD as target machine for GNU compiler.
  2.    Copyright (C) 1993, 1995 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. #define DECSTATION
  22.  
  23. #ifndef CPP_PREDEFINES
  24. #define CPP_PREDEFINES "-D__ANSI_COMPAT \
  25. -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_4 -Dhost_mips -Dmips \
  26. -Dunix -D_mips -D_unix -D_host_mips -D_MIPSEL -D_R3000 \
  27. -Asystem(unix) -Asystem(bsd) -Amachine(mips)"
  28. #endif
  29.  
  30. /* Always uses gas.  */
  31. #ifndef ASM_SPEC
  32. #define ASM_SPEC "\
  33. %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{v} \
  34. %{noasmopt:-O0} \
  35. %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} \
  36. %{g} %{g0} %{g1} %{g2} %{g3} \
  37. %{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} \
  38. %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
  39. %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
  40. %{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}"
  41. #endif
  42.  
  43. #ifndef CPP_SPEC
  44. #define CPP_SPEC "\
  45. %{.cc:    -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
  46. %{.cxx:    -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
  47. %{.C:    -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \
  48. %{.m:    -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
  49. %{.S:    -D__LANGUAGE_ASSEMBLY__ -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
  50. %{.s:    -D__LANGUAGE_ASSEMBLY -D_LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \
  51. %{!.S:%{!.s:    -D__LANGUAGE_C -D_LANGUAGE_C %{!ansi:-DLANGUAGE_C}}} \
  52. %{mlong64:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \
  53. %{!mlong64:-D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \
  54. %{mips3:-U__mips -D__mips=3 -D__mips64} \
  55. %{mgp32:-U__mips64} %{mgp64:-D__mips64} \
  56. %{EB:-UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ -D_MIPSEB -D__MIPSEB -D__MIPSEB__ %{!ansi:-DMIPSEB}} \
  57. %{EL:-UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ -D_MIPSEL -D__MIPSEL -D__MIPSEL__ %{!ansi:-DMIPSEL}}"
  58. #endif
  59.  
  60. /* Always uses GNU ld.  */
  61. #ifndef LINK_SPEC
  62. #define LINK_SPEC "%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3}"
  63. #endif
  64.  
  65. #define LIB_SPEC ""
  66. #define STARTFILE_SPEC ""
  67.  
  68. #ifndef MACHINE_TYPE
  69. #define MACHINE_TYPE "DECstation running BSD 4.4"
  70. #endif
  71.  
  72. #define TARGET_DEFAULT MASK_GAS
  73. #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
  74.  
  75. #include "mips/mips.h"
  76.  
  77. /* Since gas and gld are standard on 4.4 BSD, we don't need these */
  78. #undef MD_EXEC_PREFIX
  79. #undef MD_STARTFILE_PREFIX
  80. #undef ASM_FINAL_SPEC
  81. #undef LIB_SPEC
  82. #undef STARTFILE_SPEC
  83.  
  84.