src@eliabel.sf.ca.us (08/18/90)
Oopps, I did forget the config directory from the previous post. Here it comes; Eric P. Meyer ELIABEL Corp. emeyer@eliabel.sf.ca.us diff -p gcc-1.37.1/config/tm-i386gas.h ../gcc-1.37.1/config/tm-i386gas.h *** gcc-1.37.1/config/tm-i386gas.h Fri Sep 1 15:13:01 1989 --- ../gcc-1.37.1/config/tm-i386gas.h Wed Aug 1 16:19:11 1990 *************** the Free Software Foundation, 675 Mass A *** 41,46 **** --- 41,51 ---- #undef DBX_NO_XREFS #undef DBX_CONTIN_LENGTH + /* This is how to output a reference to a user-level label named NAME. */ + #undef ASM_OUTPUT_LABELREF + #define ASM_OUTPUT_LABELREF(FILE,NAME) \ + fprintf (FILE, "%s", NAME) + /* By default, target has a 80387. */ #define TARGET_DEFAULT 1 diff -p gcc-1.37.1/config/tm-i386v.h ../gcc-1.37.1/config/tm-i386v.h *** gcc-1.37.1/config/tm-i386v.h Thu Aug 3 21:39:41 1989 --- ../gcc-1.37.1/config/tm-i386v.h Wed Aug 8 14:31:58 1990 *************** *** 1,4 **** ! /* Definitions for Intel 386 running system V. Copyright (C) 1988 Free Software Foundation, Inc. This file is part of GNU CC. --- 1,4 ---- ! /* Definitions for Intel 386 running system V with gnu tools Copyright (C) 1988 Free Software Foundation, Inc. This file is part of GNU CC. *************** the Free Software Foundation, 675 Mass A *** 19,32 **** #include "tm-i386.h" ! /* Use the ATT assembler syntax. */ ! #include "tm-att386.h" ! /* By default, target has a 80387. */ ! #define TARGET_DEFAULT 1 /* Use crt1.o as a startup file and crtn.o as a closing file. */ --- 19,58 ---- #include "tm-i386.h" + /* Use the bsd assembler syntax. */ + /* we need to do this because gas is really a bsd style assembler, + * and so doesn't work well this these att-isms: + * + * ASM_OUTPUT_SKIP is .set .,.+N, which isn't implemented in gas + * ASM_OUTPUT_LOCAL is done with .set .,.+N, but that can't be + * used to define bss static space + * + * Next is the question of whether to uses underscores. RMS didn't + * like this idea at first, but since it is now obvious that we + * need this separate tm file for use with gas, at least to get + * dbx debugging info, I think we should also switch to underscores. + * We can keep tm-i386v for real att style output, and the few + * people who want both form will have to compile twice. + */ + + #include "tm-bsd386.h" + + /* these come from tm-bsd386.h, but are specific to sequent */ + #undef DBX_NO_XREFS + #undef DBX_CONTIN_LENGTH + + /* This is how to output a reference to a user-level label named NAME. */ + #undef ASM_OUTPUT_LABELREF + #define ASM_OUTPUT_LABELREF(FILE,NAME) \ + fprintf (FILE, "%s", NAME) ! /* By default, target has no 80387. */ ! #define TARGET_DEFAULT 0 ! /* Specify predefined symbols in preprocessor. */ ! #define CPP_PREDEFINES "-Dunix -Di386" /* Use crt1.o as a startup file and crtn.o as a closing file. */ *************** the Free Software Foundation, 675 Mass A *** 35,44 **** #define LIB_SPEC "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} -lc crtn.o%s" - /* Specify predefined symbols in preprocessor. */ - - #define CPP_PREDEFINES "-Dunix -Di386" - /* Allow #sccs in preprocessor. */ #define SCCS_DIRECTIVE --- 61,66 ---- *************** the Free Software Foundation, 675 Mass A *** 47,59 **** #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME); ! /* We want to output SDB debugging information. */ ! #define SDB_DEBUGGING_INFO ! /* We don't want to output DBX debugging information. */ ! #undef DBX_DEBUGGING_INFO /* Implicit library calls should use memcpy, not bcopy, etc. */ --- 69,81 ---- #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME); ! /* We do not want to output SDB debugging information. */ ! #undef SDB_DEBUGGING_INFO ! /* We want to output DBX debugging information. */ ! #define DBX_DEBUGGING_INFO /* Implicit library calls should use memcpy, not bcopy, etc. */ *************** the Free Software Foundation, 675 Mass A *** 63,72 **** #define PCC_BITFIELD_TYPE_MATTERS ! /* Don't write a `.optim' pseudo; this assembler doesn't handle them. */ ! #undef ASM_FILE_START_1 ! #define ASM_FILE_START_1(FILE) /* Machines that use the AT&T assembler syntax also return floating point values in an FP register. */ --- 85,100 ---- #define PCC_BITFIELD_TYPE_MATTERS ! /* When using gas, .align N aligns to an N-byte boundary. */ ! ! #undef ASM_OUTPUT_ALIGN ! #define ASM_OUTPUT_ALIGN(FILE,LOG) \ ! if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG)) ! /* Align labels, etc. at 4-byte boundaries. */ ! ! #define ASM_OUTPUT_ALIGN_CODE(FILE) \ ! fprintf ((FILE), "\t.align 4\n"); /* Machines that use the AT&T assembler syntax also return floating point values in an FP register. */ *************** the Free Software Foundation, 675 Mass A *** 81,83 **** --- 109,115 ---- /* 1 if N is a possible register number for a function value. */ #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG) + + #undef ASM_FILE_START + #define ASM_FILE_START(FILE) \ + fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);