i386-coff.h revision 117395
1157873Simp/* Definitions for "naked" Intel 386 using coff object format files
2157873Simp   and coff debugging info.
3157873Simp
4157873Simp   Copyright (C) 1994, 2000, 2002 Free Software Foundation, Inc.
5157873Simp
6157873SimpThis file is part of GNU CC.
7157873Simp
8157873SimpGNU CC is free software; you can redistribute it and/or modify
9157873Simpit under the terms of the GNU General Public License as published by
10157873Simpthe Free Software Foundation; either version 2, or (at your option)
11157873Simpany later version.
12157873Simp
13157873SimpGNU CC is distributed in the hope that it will be useful,
14157873Simpbut WITHOUT ANY WARRANTY; without even the implied warranty of
15157873SimpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16157873SimpGNU General Public License for more details.
17157873Simp
18157873SimpYou should have received a copy of the GNU General Public License
19157873Simpalong with GNU CC; see the file COPYING.  If not, write to
20157873Simpthe Free Software Foundation, 59 Temple Place - Suite 330,
21157873SimpBoston, MA 02111-1307, USA.  */
22157873Simp
23157873Simp
24157873Simp#define TARGET_VERSION fprintf (stderr, " (80386, COFF BSD syntax)");
25157873Simp
26157873Simp#define TARGET_OS_CPP_BUILTINS() /* Sweet FA.  */
27157873Simp
28157873Simp/* We want to be able to get DBX debugging information via -gstabs.  */
29157873Simp
30157873Simp#define DBX_DEBUGGING_INFO 1
31157873Simp
32157873Simp#undef PREFERRED_DEBUGGING_TYPE
33157873Simp#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
34164137Simp
35157873Simp/* Switch into a generic section.  */
36157873Simp#define TARGET_ASM_NAMED_SECTION  default_coff_asm_named_section
37157873Simp
38157873Simp/* Prefix for internally generated assembler labels.  If we aren't using
39157873Simp   underscores, we are using prefix `.'s to identify labels that should
40157873Simp   be ignored, as in `i386/gas.h' --karl@cs.umb.edu  */
41157873Simp
42171426Simp#undef  LPREFIX
43171426Simp#define LPREFIX ".L"
44171426Simp
45171426Simp/* The prefix to add to user-visible assembler symbols.  */
46171426Simp
47171426Simp#undef  USER_LABEL_PREFIX
48171426Simp#define USER_LABEL_PREFIX ""
49171426Simp
50165398Simp/* If user-symbols don't have underscores,
51165398Simp   then it must take more than `L' to identify
52165398Simp   a label that should be ignored.  */
53165398Simp
54165398Simp/* This is how to store into the string BUF
55165398Simp   the symbol_ref name of an internal numbered label where
56165398Simp   PREFIX is the class of label and NUM is the number within the class.
57165398Simp   This is suitable for output with `assemble_name'.  */
58157873Simp
59157873Simp#undef  ASM_GENERATE_INTERNAL_LABEL
60157873Simp#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
61161191Simp  sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
62157873Simp
63157873Simp/* This is how to output an internal numbered label where
64157873Simp   PREFIX is the class of label and NUM is the number within the class.  */
65157873Simp
66157873Simp#undef  ASM_OUTPUT_INTERNAL_LABEL
67157873Simp#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\
68157873Simp  fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
69168013Simp
70168013Simp/* end of i386-coff.h */
71157873Simp