home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / gcc-2.3.3-src.lha / GNU / src / amiga / gcc-2.3.3 / config / hp2bsd.h < prev    next >
C/C++ Source or Header  |  1994-02-06  |  2KB  |  70 lines

  1. /* Definitions of target machine for GNU compiler.  HP 9000/200 68000 version.
  2.    Copyright (C) 1987, 1991 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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "m68k.h"
  21.  
  22. /* See m68k.h.  0 means 68000 with no 68881.  */
  23.  
  24. #define TARGET_DEFAULT 0
  25.  
  26. /* Define __HAVE_68881 in preprocessor only if -m68881 is specified.
  27.    This will control the use of inline 68881 insns in certain macros.
  28.    Also inform the program which CPU this is for.  */
  29.  
  30. #define CPP_SPEC "%{m68881:-D__HAVE_68881__} \
  31. %{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
  32.  
  33. /* -m68020 requires special flags to the assembler.  */
  34.  
  35. #define ASM_SPEC \
  36.  "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!m68020:-mc68010}}"
  37.  
  38. /* Names to predefine in the preprocessor for this target machine.  */
  39.  
  40. #define CPP_PREDEFINES "-Dmc68000 -Dmc68010 -Dhp200 -Dunix"
  41.  
  42. /* Link with libg.a when debugging, for dbx's sake.  */
  43.  
  44. #define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} "
  45.  
  46. /* Alignment of field after `int : 0' in a structure.  */
  47.  
  48. #undef EMPTY_FIELD_BOUNDARY
  49. #define EMPTY_FIELD_BOUNDARY 16
  50.  
  51. /* Every structure or union's size must be a multiple of 2 bytes.  */
  52.  
  53. #define STRUCTURE_SIZE_BOUNDARY 16
  54.  
  55. /* This is BSD, so it wants DBX format.  */
  56.  
  57. #define DBX_DEBUGGING_INFO
  58.  
  59. /* Define subroutines to call to handle multiply, divide, and remainder.
  60.    These routines are built into the c-library on the hp200.
  61.    XXX What other routines from the c-library could we use?
  62.    The `*' prevents an underscore from being prepended by the compiler.  */
  63.  
  64. #define DIVSI3_LIBCALL "*ldiv"
  65. #define UDIVSI3_LIBCALL "*uldiv"
  66. #define MODSI3_LIBCALL "*lrem"
  67. #define UMODSI3_LIBCALL "*ulrem"
  68. #define MULSI3_LIBCALL "*lmul"
  69. #define UMULSI3_LIBCALL "*ulmul"
  70.