|
|
1.1 ! root 1: /* Definitions for Intel 386 running system V with gnu tools ! 2: Except that that really seems to use i386gas.h. So it's ! 3: not clear what, if anything, this file is good for. ! 4: Copyright (C) 1988 Free Software Foundation, Inc. ! 5: ! 6: This file is part of GNU CC. ! 7: ! 8: GNU CC is free software; you can redistribute it and/or modify ! 9: it under the terms of the GNU General Public License as published by ! 10: the Free Software Foundation; either version 2, or (at your option) ! 11: any later version. ! 12: ! 13: GNU CC is distributed in the hope that it will be useful, ! 14: but WITHOUT ANY WARRANTY; without even the implied warranty of ! 15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 16: GNU General Public License for more details. ! 17: ! 18: You should have received a copy of the GNU General Public License ! 19: along with GNU CC; see the file COPYING. If not, write to ! 20: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ! 21: ! 22: ! 23: #include "i386.h" ! 24: /* Use the bsd assembler syntax. */ ! 25: /* we need to do this because gas is really a bsd style assembler, ! 26: * and so doesn't work well this these att-isms: ! 27: * ! 28: * ASM_OUTPUT_SKIP is .set .,.+N, which isn't implemented in gas ! 29: * ASM_OUTPUT_LOCAL is done with .set .,.+N, but that can't be ! 30: * used to define bss static space ! 31: * ! 32: * Next is the question of whether to uses underscores. RMS didn't ! 33: * like this idea at first, but since it is now obvious that we ! 34: * need this separate tm file for use with gas, at least to get ! 35: * dbx debugging info. */ ! 36: ! 37: #include "bsd386.h" ! 38: ! 39: /* these come from bsd386.h, but are specific to sequent */ ! 40: #undef DBX_NO_XREFS ! 41: #undef DBX_CONTIN_LENGTH ! 42: ! 43: /* By default, target has a 80387. */ ! 44: ! 45: #define TARGET_DEFAULT 1 ! 46: ! 47: #if 0 /* These aren't right for GNU ld. */ ! 48: /* Use crt1.o as a startup file and crtn.o as a closing file. */ ! 49: ! 50: #define STARTFILE_SPEC \ ! 51: "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}" ! 52: ! 53: #define LIB_SPEC "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} -lc crtn.o%s" ! 54: #endif ! 55: ! 56: /* Specify predefined symbols in preprocessor. */ ! 57: ! 58: #define CPP_PREDEFINES "-Dunix -Di386" ! 59: ! 60: /* Allow #sccs in preprocessor. */ ! 61: ! 62: #define SCCS_DIRECTIVE ! 63: ! 64: /* Output #ident as a .ident. */ ! 65: ! 66: #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME); ! 67: ! 68: /* We do not want to output SDB debugging information. */ ! 69: ! 70: #undef SDB_DEBUGGING_INFO ! 71: ! 72: /* We want to output DBX debugging information. */ ! 73: ! 74: #define DBX_DEBUGGING_INFO ! 75: ! 76: /* Implicit library calls should use memcpy, not bcopy, etc. */ ! 77: ! 78: #define TARGET_MEM_FUNCTIONS ! 79: ! 80: /* Writing `int' for a bitfield forces int alignment for the structure. */ ! 81: ! 82: #define PCC_BITFIELD_TYPE_MATTERS 1 ! 83: ! 84: #undef ASM_FILE_START ! 85: #define ASM_FILE_START(FILE) \ ! 86: fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name); ! 87: ! 88: /* This is how to output a reference to a user-level label named NAME. */ ! 89: #undef ASM_OUTPUT_LABELREF ! 90: #define ASM_OUTPUT_LABELREF(FILE,NAME) \ ! 91: fprintf (FILE, "_%s", NAME) ! 92: ! 93: #if 0 /* People say gas uses the log as the arg to .align. */ ! 94: /* When using gas, .align N aligns to an N-byte boundary. */ ! 95: ! 96: #undef ASM_OUTPUT_ALIGN ! 97: #define ASM_OUTPUT_ALIGN(FILE,LOG) \ ! 98: if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG)) ! 99: #endif ! 100: ! 101: /* Align labels, etc. at 4-byte boundaries. */ ! 102: ! 103: #undef ASM_OUTPUT_ALIGN_CODE ! 104: #define ASM_OUTPUT_ALIGN_CODE(FILE) \ ! 105: fprintf ((FILE), "\t.align 2,0x90\n"); /* Use log of 4 as arg. */ ! 106: ! 107: /* Machines that use the AT&T assembler syntax ! 108: also return floating point values in an FP register. */ ! 109: /* Define how to find the value returned by a function. ! 110: VALTYPE is the data type of the value (as a tree). ! 111: If the precise function being called is known, FUNC is its FUNCTION_DECL; ! 112: otherwise, FUNC is 0. */ ! 113: ! 114: #define VALUE_REGNO(MODE) \ ! 115: (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0) ! 116: ! 117: /* 1 if N is a possible register number for a function value. */ ! 118: ! 119: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG) ! 120: ! 121: #if 0 /* This symbol is expected to exist only on BSD, ! 122: and besides, it describes the host rather than the target. ! 123: It certainly does not belong here. */ ! 124: #ifndef MAXPATHLEN ! 125: #define MAXPATHLEN 1024 ! 126: #endif ! 127: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.