Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/nto.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Definitions for Intel 386 running QNX/Neutrino. | 1 /* Definitions for Intel 386 running QNX/Neutrino. |
2 Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc. | 2 Copyright (C) 2002, 2003, 2007, 2010 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify | 6 GCC is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
25 | 25 |
26 #undef TARGET_OS_CPP_BUILTINS | 26 #undef TARGET_OS_CPP_BUILTINS |
27 #define TARGET_OS_CPP_BUILTINS() \ | 27 #define TARGET_OS_CPP_BUILTINS() \ |
28 do \ | 28 do \ |
29 { \ | 29 { \ |
30 builtin_define_std ("__X86__"); \ | 30 builtin_define ("__X86__"); \ |
31 builtin_define_std ("__QNXNTO__"); \ | 31 builtin_define ("__QNXNTO__"); \ |
32 builtin_define_std ("__QNX__"); \ | 32 builtin_define ("__QNX__"); \ |
33 builtin_define_std ("__ELF__"); \ | 33 builtin_define ("__ELF__"); \ |
34 builtin_define_std ("__LITTLEENDIAN__");\ | 34 builtin_define ("__LITTLEENDIAN__"); \ |
35 builtin_assert ("system=qnx"); \ | 35 builtin_assert ("system=qnx"); \ |
36 builtin_assert ("system=qnxnto"); \ | 36 builtin_assert ("system=qnxnto"); \ |
37 builtin_assert ("system=nto"); \ | 37 builtin_assert ("system=nto"); \ |
38 builtin_assert ("system=unix"); \ | 38 builtin_assert ("system=unix"); \ |
39 } \ | 39 } \ |
42 #undef THREAD_MODEL_SPEC | 42 #undef THREAD_MODEL_SPEC |
43 #define THREAD_MODEL_SPEC "posix" | 43 #define THREAD_MODEL_SPEC "posix" |
44 | 44 |
45 #ifdef CROSS_DIRECTORY_STRUCTURE | 45 #ifdef CROSS_DIRECTORY_STRUCTURE |
46 #define SYSROOT_SUFFIX_SPEC "x86" | 46 #define SYSROOT_SUFFIX_SPEC "x86" |
47 #endif | |
48 | |
49 #ifndef CROSS_DIRECTORY_STRUCTURE | |
50 #undef MD_EXEC_PREFIX | |
51 #define MD_EXEC_PREFIX "/usr/ccs/bin/" | |
52 | |
53 #undef MD_STARTFILE_PREFIX | |
54 #define MD_STARTFILE_PREFIX "/usr/ccs/lib/" | |
47 #endif | 55 #endif |
48 | 56 |
49 #undef STARTFILE_SPEC | 57 #undef STARTFILE_SPEC |
50 #define STARTFILE_SPEC \ | 58 #define STARTFILE_SPEC \ |
51 "%{!shared: \ | 59 "%{!shared: \ |
62 "crtend.o%s crtn.o%s" | 70 "crtend.o%s crtn.o%s" |
63 | 71 |
64 #undef LINK_SPEC | 72 #undef LINK_SPEC |
65 #define LINK_SPEC \ | 73 #define LINK_SPEC \ |
66 "%{h*} %{v:-V} \ | 74 "%{h*} %{v:-V} \ |
67 %{b} \ | |
68 %{static:-dn -Bstatic} \ | 75 %{static:-dn -Bstatic} \ |
69 %{shared:-G -dy -z text} \ | 76 %{shared:-G -dy -z text} \ |
70 %{symbolic:-Bsymbolic -G -dy -z text} \ | 77 %{symbolic:-Bsymbolic -G -dy -z text} \ |
71 %{G:-G} \ | 78 %{G:-G} \ |
72 %{YP,*} \ | 79 %{YP,*} \ |
74 %{!p:-Y P,%R/lib}} \ | 81 %{!p:-Y P,%R/lib}} \ |
75 %{Qy:} %{!Qn:-Qy} \ | 82 %{Qy:} %{!Qn:-Qy} \ |
76 -m i386nto \ | 83 -m i386nto \ |
77 %{!shared: --dynamic-linker /usr/lib/ldqnx.so.2}" | 84 %{!shared: --dynamic-linker /usr/lib/ldqnx.so.2}" |
78 | 85 |
86 #undef LIB_SPEC | |
87 #define LIB_SPEC "%{!shared:%{!symbolic:-lc}}" | |
88 | |
89 #undef ASM_SPEC | |
90 #define ASM_SPEC "" | |
79 | 91 |
80 #undef SIZE_TYPE | 92 #undef SIZE_TYPE |
81 #define SIZE_TYPE "unsigned int" | 93 #define SIZE_TYPE "unsigned int" |
82 | 94 |
83 #undef PTRDIFF_TYPE | 95 #undef PTRDIFF_TYPE |
89 #undef WCHAR_TYPE_SIZE | 101 #undef WCHAR_TYPE_SIZE |
90 #define WCHAR_TYPE_SIZE BITS_PER_WORD | 102 #define WCHAR_TYPE_SIZE BITS_PER_WORD |
91 | 103 |
92 #define NO_IMPLICIT_EXTERN_C 1 | 104 #define NO_IMPLICIT_EXTERN_C 1 |
93 | 105 |
106 #define TARGET_POSIX_IO | |
107 | |
108 #undef DBX_REGISTER_NUMBER |