xref: /openbsd-src/gnu/gcc/gcc/config/h8300/coff.h (revision 404b540a9034ac75a6199ad1a32d1bbc7a0d4210)
1 /* Definitions of target machine for GNU compiler.
2    Renesas H8/300 version generating coff
3    Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4    Contributed by Steve Chamberlain (sac@cygnus.com),
5    Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
6 
7 This file is part of GCC.
8 
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.
13 
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.
18 
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, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA.  */
23 
24 #ifndef GCC_H8300_COFF_H
25 #define GCC_H8300_COFF_H
26 
27 #define SDB_DEBUGGING_INFO 1
28 #define SDB_DELIM	"\n"
29 
30 /* Generate a blank trailing N_SO to mark the end of the .o file, since
31    we can't depend upon the linker to mark .o file boundaries with
32    embedded stabs.  */
33 
34 #define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
35 
36 /* This is how to output an assembler line
37    that says to advance the location counter by SIZE bytes.  */
38 
39 #define ASM_OUTPUT_IDENT(FILE, NAME)			\
40   fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME)
41 
42 #define IDENT_ASM_OP "\t.ident\t"
43 #define INIT_SECTION_ASM_OP "\t.section .init"
44 #define READONLY_DATA_SECTION_ASM_OP "\t.section .rodata"
45 
46 /* Switch into a generic section.  */
47 #define TARGET_ASM_NAMED_SECTION h8300_asm_named_section
48 
49 /* A bit-field declared as `int' forces `int' alignment for the struct.  */
50 #define PCC_BITFIELD_TYPE_MATTERS  0
51 
52 #endif /* h8300/coff.h */
53