PR target/84564
[official-gcc.git] / gcc / config / h8300 / linux.h
bloba772badd5a6f5bf298a09ed796bfc5503f7f2434
1 /* Definitions of target machine for GNU compiler.
2 Renesas H8/300 (linux variant)
3 Copyright (C) 2015-2018 Free Software Foundation, Inc.
4 Contributed by Yoshinori Sato <ysato@users.sourceforge.jp>
6 This file is part of GCC.
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.
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.
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/>. */
22 #ifndef GCC_H8300_LINUX_H
23 #define GCC_H8300_LINUX_H
25 #define TARGET_OS_CPP_BUILTINS() \
26 do \
27 { \
28 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
29 } \
30 while (0)
32 #undef LINK_SPEC
33 #define LINK_SPEC "%{mh:-mh8300helf_linux} %{ms:-m h8300self_linux} %{msx:-m h8300sxelf_linux}"
35 #undef TARGET_DEFAULT
36 #define TARGET_DEFAULT (MASK_QUICKCALL | MASK_INT32 | MASK_H8300H)
38 /* Width of a word, in units (bytes). */
39 #undef DOUBLE_TYPE_SIZE
40 #define DOUBLE_TYPE_SIZE 64
42 #undef DEFAULT_SIGNED_CHAR
43 #define DEFAULT_SIGNED_CHAR 1
45 #undef USER_LABEL_PREFIX
47 #define H8300_LINUX
49 #endif /* ! GCC_H8300_LINUX_H */