home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / cplusplus-8 / config / tm-aix386.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-31  |  3.5 KB  |  115 lines

  1. /* Definitions for IBM PS2 running AIX/386.
  2.    From: Minh Tran-Le <TRANLE@intellicorp.com>
  3.    Copyright (C) 1988 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU CC.
  6.  
  7. GNU CC is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 1, or (at your option)
  10. any later version.
  11.  
  12. GNU CC is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU CC; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21.  
  22. #include "tm-i386.h"
  23.  
  24. /* Use the ATT assembler syntax.  */
  25.  
  26. #include "tm-att386.h"
  27.  
  28. /* By default, target has a 80387.  */
  29.  
  30. #define TARGET_DEFAULT 1
  31.  
  32. /* Use crt1.o as a startup file and crtn.o as a closing file.  */
  33.  
  34. #define STARTFILE_SPEC  \
  35.   "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
  36.  
  37. #define LIB_SPEC "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} -lc crtn.o%s"
  38.  
  39. /* Special flags for the linker.  I don't know what they do.  */
  40.  
  41. #define LINK_SPEC "%{!K:-K} %{!T*:-T0x00400000} %{z:-lm}"
  42.  
  43. /* Specify predefined symbols in preprocessor.  */
  44.  
  45. #define CPP_PREDEFINES "-D_I386 -Di386 -DAIX -D_AIX"
  46.  
  47. /* special flags for the aix assembler to generate the short form for all
  48.    qualifying forward reference */
  49.  
  50. #define ASM_SPEC "-s2"
  51.  
  52. /* Allow #sccs in preprocessor.  */
  53.  
  54. #define SCCS_DIRECTIVE
  55.  
  56. /* Output #ident as a .ident.  */
  57.  
  58. #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
  59.  
  60. #undef ASM_FILE_START
  61. #define ASM_FILE_START(FILE)                     \
  62.   do { fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);    \
  63.      } while (0)
  64. /* This used to output .noopt if nonoptimizing and run ASM_FILE_START_1
  65.    if optimizing, but that loses with the AIX assembler.  */
  66.  
  67. /* This was suggested, but it shouldn't be right for DBX output. -- RMS
  68.    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
  69.  
  70. /* We want to output SDB debugging information. */
  71.  
  72. #define SDB_DEBUGGING_INFO
  73.  
  74. /* We don't want to output DBX debugging information. Becaus IBM AIX dbx
  75.    use COFF format */
  76.  
  77. #undef DBX_DEBUGGING_INFO
  78.  
  79. /* Implicit library calls should use memcpy, not bcopy, etc.  */
  80.  
  81. #define TARGET_MEM_FUNCTIONS
  82.  
  83. /* Writing `int' for a bitfield forces int alignment for the structure.  */
  84.  
  85. #define PCC_BITFIELD_TYPE_MATTERS 1
  86.  
  87. /* Don't write a `.optim' pseudo; this assembler
  88.    is said to have a bug when .optim is used.  */
  89.  
  90. #if 0
  91. #undef ASM_FILE_START_1
  92. #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.noopt\n");
  93. #endif
  94.  
  95. /* Machines that use the AT&T assembler syntax
  96.    also return floating point values in an FP register.  */
  97. /* Define how to find the value returned by a function.
  98.    VALTYPE is the data type of the value (as a tree).
  99.    If the precise function being called is known, FUNC is its FUNCTION_DECL;
  100.    otherwise, FUNC is 0.  */
  101.  
  102. #define VALUE_REGNO(MODE) \
  103.   (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
  104.  
  105. /* 1 if N is a possible register number for a function value. */
  106.  
  107. #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
  108.  
  109. /* Output assembler code to FILE to increment profiler label # LABELNO
  110.    for profiling a function entry.  */
  111.  
  112. #undef FUNCTION_PROFILER
  113. #define FUNCTION_PROFILER(FILE, LABELNO)  \
  114.    fprintf (FILE, "\tleal %sP%d,%%eax\n\tcall mcount\n", LPREFIX, (LABELNO));
  115.