i386-coff.h revision 303975
1146482Smarius/* Definitions for "naked" Intel 386 using coff object format files 2146482Smarius and coff debugging info. 3146482Smarius 4146482Smarius Copyright (C) 1994, 2000, 2002, 2004 Free Software Foundation, Inc. 5146482Smarius 6146482SmariusThis file is part of GCC. 7146482Smarius 8146482SmariusGCC is free software; you can redistribute it and/or modify 9146482Smariusit under the terms of the GNU General Public License as published by 10146482Smariusthe Free Software Foundation; either version 2, or (at your option) 11146482Smariusany later version. 12146482Smarius 13146482SmariusGCC is distributed in the hope that it will be useful, 14146482Smariusbut WITHOUT ANY WARRANTY; without even the implied warranty of 15146482SmariusMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16146482SmariusGNU General Public License for more details. 17146482Smarius 18146482SmariusYou should have received a copy of the GNU General Public License 19146482Smariusalong with GCC; see the file COPYING. If not, write to 20146482Smariusthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 21146482SmariusBoston, MA 02110-1301, USA. */ 22146482Smarius 23146482Smarius 24146482Smarius#define TARGET_VERSION fprintf (stderr, " (80386, COFF BSD syntax)"); 25146482Smarius 26146482Smarius#define TARGET_OS_CPP_BUILTINS() /* Sweet FA. */ 27146482Smarius 28146482Smarius/* We want to be able to get DBX debugging information via -gstabs. */ 29146482Smarius 30146482Smarius#define DBX_DEBUGGING_INFO 1 31146482Smarius 32146482Smarius#undef PREFERRED_DEBUGGING_TYPE 33146482Smarius#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG 34146482Smarius 35146482Smarius/* Switch into a generic section. */ 36146482Smarius#define TARGET_ASM_NAMED_SECTION default_coff_asm_named_section 37146482Smarius 38146482Smarius/* Prefix for internally generated assembler labels. If we aren't using 39146482Smarius underscores, we are using prefix `.'s to identify labels that should 40146482Smarius be ignored, as in `i386/gas.h' --karl@cs.umb.edu */ 41146482Smarius 42146482Smarius#undef LPREFIX 43146482Smarius#define LPREFIX ".L" 44146482Smarius 45146482Smarius/* The prefix to add to user-visible assembler symbols. */ 46146482Smarius 47146482Smarius#undef USER_LABEL_PREFIX 48146482Smarius#define USER_LABEL_PREFIX "" 49146482Smarius 50146482Smarius/* If user-symbols don't have underscores, 51146482Smarius then it must take more than `L' to identify 52146482Smarius a label that should be ignored. */ 53146482Smarius 54146482Smarius/* This is how to store into the string BUF 55146482Smarius the symbol_ref name of an internal numbered label where 56146482Smarius PREFIX is the class of label and NUM is the number within the class. 57146482Smarius This is suitable for output with `assemble_name'. */ 58146482Smarius 59146482Smarius#undef ASM_GENERATE_INTERNAL_LABEL 60146482Smarius#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ 61146482Smarius sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER)) 62146482Smarius 63146482Smarius/* GNU as expects alignment to be the number of bytes instead of the log for 64146482Smarius COFF targets. */ 65146482Smarius 66146482Smarius#undef ASM_OUTPUT_ALIGN 67146482Smarius#define ASM_OUTPUT_ALIGN(FILE,LOG) \ 68146482Smarius if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG)) 69146482Smarius 70146482Smarius/* end of i386-coff.h */ 71146482Smarius