]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/mn10300/linux.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / mn10300 / linux.h
CommitLineData
2beef00e
AO
1/* Definitions of taret machine for GNU compiler.
2 Matsushita AM33/2.0
818ab71a 3 Copyright (C) 2001-2016 Free Software Foundation, Inc.
2beef00e
AO
4 Contributed by Alexandre Oliva <aoliva@redhat.com>
5
7ec022b2 6 This file is part of GCC.
2beef00e 7
7ec022b2 8 GCC is free software; you can redistribute it and/or modify
2beef00e 9 it under the terms of the GNU General Public License as published by
2f83c7d6 10 the Free Software Foundation; either version 3, or (at your option)
2beef00e
AO
11 any later version.
12
7ec022b2 13 GCC is distributed in the hope that it will be useful,
2beef00e
AO
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
2f83c7d6
NC
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
2beef00e
AO
21
22#undef PREFERRED_DEBUGGING_TYPE
23#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
24
107fd1c1 25#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
2beef00e
AO
26
27#undef CPP_SPEC
28#define CPP_SPEC "%{mam33:-D__AM33__} %{!mam33:-D__AM33__=2 -D__AM33_2__} \
29 %{posix:-D_POSIX_SOURCE} \
30 %{pthread:-D_REENTRANT -D_PTHREADS}"
31
32#undef ASM_SPEC
c6c34cb4 33#define ASM_SPEC ""
2beef00e 34
7bd85ce0
JM
35#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
36
2beef00e
AO
37#undef LINK_SPEC
38#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
39 %{!static: \
40 %{rdynamic:-export-dynamic} \
107fd1c1 41 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
2beef00e
AO
42 %{static:-static}"
43
13dd556c
RS
44#undef PROCESSOR_DEFAULT
45#define PROCESSOR_DEFAULT PROCESSOR_AM33_2
2beef00e 46
2beef00e
AO
47#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
48
49extern int mn10300_protect_label;
50
51#undef PRINT_OPERAND
52#define PRINT_OPERAND(FILE, X, CODE) \
53 do \
54 { \
55 mn10300_protect_label = 1; \
27145a64 56 mn10300_print_operand ((FILE), (X), (CODE)); \
2beef00e
AO
57 mn10300_protect_label = 0; \
58 } \
59 while (0)
60
61#undef PRINT_OPERAND_ADDRESS
62#define PRINT_OPERAND_ADDRESS(FILE, X) \
63 do \
64 { \
65 mn10300_protect_label = 1; \
27145a64 66 mn10300_print_operand_address ((FILE), (X)); \
2beef00e
AO
67 mn10300_protect_label = 0; \
68 } \
69 while (0)
70
71#undef ASM_OUTPUT_LABELREF
72#define ASM_OUTPUT_LABELREF(FILE, NAME) \
73 do \
74 { \
75 const char * real_name; \
76 \
77 real_name = (*targetm.strip_name_encoding) (NAME); \
78 if (mn10300_protect_label) \
79 asm_fprintf (FILE, "+"); \
80 asm_fprintf (FILE, "%U%s", real_name); \
81 } \
82 while (0)
83
6b9b8b34
JM
84#undef SIZE_TYPE
85#undef PTRDIFF_TYPE
86#undef WCHAR_TYPE
87#undef WCHAR_TYPE_SIZE