2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / h8300 / coff.h
blob7b56a494ac6d2f54d83a877040c81c58622ff249
1 /* Definitions of target machine for GNU compiler.
2 Hitachi H8/300 version generating coff
3 Copyright (C) 2003 Free Software Foundation, Inc.
4 Contributed by Steve Chamberlain (sac@cygnus.com),
5 Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
24 #ifndef GCC_H8300_COFF_H
25 #define GCC_H8300_COFF_H
27 #define SDB_DEBUGGING_INFO 1
28 #define SDB_DELIM "\n"
30 /* Override definition in dbxcoff.h. */
31 /* Generate a blank trailing N_SO to mark the end of the .o file, since
32 we can't depend upon the linker to mark .o file boundaries with
33 embedded stabs. */
35 #undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
36 #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
37 fprintf (FILE, \
38 "\t.text\n.stabs \"\",%d,0,0,.Letext\n.Letext:\n", N_SO)
40 /* This is how to output an assembler line
41 that says to advance the location counter by SIZE bytes. */
43 #define ASM_OUTPUT_IDENT(FILE, NAME) \
44 fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME)
46 #define IDENT_ASM_OP "\t.ident\t"
47 #define INIT_SECTION_ASM_OP "\t.section .init"
48 #define READONLY_DATA_SECTION_ASM_OP "\t.section .rodata"
50 /* Switch into a generic section. */
51 #define TARGET_ASM_NAMED_SECTION h8300_asm_named_section
53 /* A bit-field declared as `int' forces `int' alignment for the struct. */
54 #define PCC_BITFIELD_TYPE_MATTERS 0
56 #endif /* h8300/coff.h */