Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / config / mn10300 / linux.h
blobcfaa0a8f34121eebfdc37922a063f99e16034786
1 /* Definitions of taret machine for GNU compiler.
2 Matsushita AM33/2.0
3 Copyright 2001, 2002, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
4 Contributed by Alexandre Oliva <aoliva@redhat.com>
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 #undef PREFERRED_DEBUGGING_TYPE
23 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
25 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
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}"
32 #undef ASM_SPEC
33 #define ASM_SPEC ""
35 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
37 #undef LINK_SPEC
38 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
39 %{!static: \
40 %{rdynamic:-export-dynamic} \
41 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \
42 %{static:-static}"
44 #undef PROCESSOR_DEFAULT
45 #define PROCESSOR_DEFAULT PROCESSOR_AM33_2
47 #undef TARGET_VERSION
48 #define TARGET_VERSION fprintf (stderr, " (AM33/2.0 GNU/Linux)");
50 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
52 extern int mn10300_protect_label;
54 #undef PRINT_OPERAND
55 #define PRINT_OPERAND(FILE, X, CODE) \
56 do \
57 { \
58 mn10300_protect_label = 1; \
59 print_operand ((FILE), (X), (CODE)); \
60 mn10300_protect_label = 0; \
61 } \
62 while (0)
64 #undef PRINT_OPERAND_ADDRESS
65 #define PRINT_OPERAND_ADDRESS(FILE, X) \
66 do \
67 { \
68 mn10300_protect_label = 1; \
69 print_operand_address ((FILE), (X)); \
70 mn10300_protect_label = 0; \
71 } \
72 while (0)
74 #undef ASM_OUTPUT_LABELREF
75 #define ASM_OUTPUT_LABELREF(FILE, NAME) \
76 do \
77 { \
78 const char * real_name; \
80 real_name = (*targetm.strip_name_encoding) (NAME); \
81 if (mn10300_protect_label) \
82 asm_fprintf (FILE, "+"); \
83 asm_fprintf (FILE, "%U%s", real_name); \
84 } \
85 while (0)
87 #undef SIZE_TYPE
88 #undef PTRDIFF_TYPE
89 #undef WCHAR_TYPE
90 #undef WCHAR_TYPE_SIZE