2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / sh / coff.h
blob1bbfdc7ac618fda74cf8b16a7ee73fedfd96d687
1 /* Definitions of target machine for gcc for Renesas / SuperH SH using ELF.
2 Copyright (C) 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
3 Contributed by Jörn Rennecke <joern.rennecke@superh.com>.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Generate SDB debugging information. */
24 #define SDB_DEBUGGING_INFO 1
26 #define SDB_DELIM ";"
28 #ifndef MAX_OFILE_ALIGNMENT
29 #define MAX_OFILE_ALIGNMENT 128
30 #endif
32 #define IDENT_ASM_OP "\t.ident\t"
34 /* Switch into a generic section. */
35 #define TARGET_ASM_NAMED_SECTION default_coff_asm_named_section
37 /* The prefix to add to user-visible assembler symbols. */
39 #define USER_LABEL_PREFIX "_"
41 /* The prefix to add to an internally generated label. */
43 #define LOCAL_LABEL_PREFIX ""
45 /* Make an internal label into a string. */
46 #define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
47 sprintf ((STRING), "*%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))
49 /* This is how to output an assembler line
50 that says to advance the location counter by SIZE bytes. */
52 #define ASM_OUTPUT_SKIP(FILE,SIZE) \
53 fprintf ((FILE), "\t.space %d\n", (int)(SIZE))
55 /* This says how to output an assembler line
56 to define a global common symbol. */
58 #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
59 ( fputs ("\t.comm ", (FILE)), \
60 assemble_name ((FILE), (NAME)), \
61 fprintf ((FILE), ",%d\n", (int)(SIZE)))
63 /* This says how to output an assembler line
64 to define a local common symbol. */
66 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
67 ( fputs ("\t.lcomm ", (FILE)), \
68 assemble_name ((FILE), (NAME)), \
69 fprintf ((FILE), ",%d\n", (int)(SIZE)))
71 #define DWARF2_UNWIND_INFO 0