1 |
38 |
julius |
/* Definitions for "naked" Intel 386 using coff object format files
|
2 |
|
|
and coff debugging info.
|
3 |
|
|
|
4 |
|
|
Copyright (C) 1994, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
8 |
|
|
GCC 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 3, or (at your option)
|
11 |
|
|
any later version.
|
12 |
|
|
|
13 |
|
|
GCC 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 GCC; see the file COPYING3. If not see
|
20 |
|
|
<http://www.gnu.org/licenses/>. */
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
#define TARGET_VERSION fprintf (stderr, " (80386, COFF BSD syntax)");
|
24 |
|
|
|
25 |
|
|
#define TARGET_OS_CPP_BUILTINS() /* Sweet FA. */
|
26 |
|
|
|
27 |
|
|
/* We want to be able to get DBX debugging information via -gstabs. */
|
28 |
|
|
|
29 |
|
|
#define DBX_DEBUGGING_INFO 1
|
30 |
|
|
|
31 |
|
|
#undef PREFERRED_DEBUGGING_TYPE
|
32 |
|
|
#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
|
33 |
|
|
|
34 |
|
|
/* Switch into a generic section. */
|
35 |
|
|
#define TARGET_ASM_NAMED_SECTION default_coff_asm_named_section
|
36 |
|
|
|
37 |
|
|
/* Prefix for internally generated assembler labels. If we aren't using
|
38 |
|
|
underscores, we are using prefix `.'s to identify labels that should
|
39 |
|
|
be ignored, as in `i386/gas.h' --karl@cs.umb.edu */
|
40 |
|
|
|
41 |
|
|
#undef LPREFIX
|
42 |
|
|
#define LPREFIX ".L"
|
43 |
|
|
|
44 |
|
|
/* The prefix to add to user-visible assembler symbols. */
|
45 |
|
|
|
46 |
|
|
#undef USER_LABEL_PREFIX
|
47 |
|
|
#define USER_LABEL_PREFIX ""
|
48 |
|
|
|
49 |
|
|
/* If user-symbols don't have underscores,
|
50 |
|
|
then it must take more than `L' to identify
|
51 |
|
|
a label that should be ignored. */
|
52 |
|
|
|
53 |
|
|
/* This is how to store into the string BUF
|
54 |
|
|
the symbol_ref name of an internal numbered label where
|
55 |
|
|
PREFIX is the class of label and NUM is the number within the class.
|
56 |
|
|
This is suitable for output with `assemble_name'. */
|
57 |
|
|
|
58 |
|
|
#undef ASM_GENERATE_INTERNAL_LABEL
|
59 |
|
|
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
|
60 |
|
|
sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
|
61 |
|
|
|
62 |
|
|
/* GNU as expects alignment to be the number of bytes instead of the log for
|
63 |
|
|
COFF targets. */
|
64 |
|
|
|
65 |
|
|
#undef ASM_OUTPUT_ALIGN
|
66 |
|
|
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
|
67 |
|
|
if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
|
68 |
|
|
|
69 |
|
|
/* end of i386-coff.h */
|