Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/mingw-w64.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Operating system specific defines to be used when targeting GCC for | 1 /* Operating system specific defines to be used when targeting GCC for |
2 hosting on Windows 32/64 via mingw-w64 runtime, using GNU tools and | 2 hosting on Windows 32/64 via mingw-w64 runtime, using GNU tools and |
3 the Windows API Library. | 3 the Windows API Library. |
4 Copyright (C) 2009, | 4 Copyright (C) 2009-2017 Free Software Foundation, Inc. |
5 2010 Free Software Foundation, Inc. | |
6 | 5 |
7 This file is part of GCC. | 6 This file is part of GCC. |
8 | 7 |
9 GCC is free software; you can redistribute it and/or modify | 8 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 | 9 it under the terms of the GNU General Public License as published by |
18 | 17 |
19 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
20 along with GCC; see the file COPYING3. If not see | 19 along with GCC; see the file COPYING3. If not see |
21 <http://www.gnu.org/licenses/>. */ | 20 <http://www.gnu.org/licenses/>. */ |
22 | 21 |
23 /* Enable -municode feature. */ | 22 /* Enable -municode feature and support optional pthread support. */ |
24 | 23 |
25 #undef CPP_SPEC | 24 #undef CPP_SPEC |
26 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \ | 25 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} " \ |
27 %{municode:-DUNICODE}" | 26 "%{municode:-DUNICODE} " \ |
27 "%{" SPEC_PTHREAD1 ":-D_REENTRANT} " \ | |
28 "%{" SPEC_PTHREAD2 ":-U_REENTRANT} " | |
28 | 29 |
29 #undef STARTFILE_SPEC | 30 #undef STARTFILE_SPEC |
30 #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ | 31 #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ |
31 %{!shared:%{!mdll:%{!municode:crt2%O%s}}} \ | 32 %{!shared:%{!mdll:%{!municode:crt2%O%s}}} \ |
32 %{!shared:%{!mdll:%{municode:crt2u%O%s}}} \ | 33 %{!shared:%{!mdll:%{municode:crt2u%O%s}}} \ |
33 %{pg:gcrt2%O%s} \ | 34 %{pg:gcrt2%O%s} \ |
34 crtbegin.o%s" | 35 crtbegin.o%s \ |
36 %{fvtable-verify=none:%s; \ | |
37 fvtable-verify=preinit:vtv_start.o%s; \ | |
38 fvtable-verify=std:vtv_start.o%s}" | |
35 | 39 |
36 /* Enable multilib. */ | 40 /* Enable multilib. */ |
37 | 41 |
38 #undef ASM_SPEC | 42 #undef ASM_SPEC |
39 #define ASM_SPEC "%{m32:--32} %{m64:--64}" | 43 #define ASM_SPEC "%{m32:--32} %{m64:--64}" |
44 | |
45 #undef LIB_SPEC | |
46 #define LIB_SPEC "%{pg:-lgmon} %{" SPEC_PTHREAD1 ":-lpthread} " \ | |
47 "%{" SPEC_PTHREAD2 ": } " \ | |
48 "%{mwindows:-lgdi32 -lcomdlg32} " \ | |
49 "%{fvtable-verify=preinit:-lvtv -lpsapi; \ | |
50 fvtable-verify=std:-lvtv -lpsapi} " \ | |
51 "-ladvapi32 -lshell32 -luser32 -lkernel32" | |
40 | 52 |
41 #undef SPEC_32 | 53 #undef SPEC_32 |
42 #undef SPEC_64 | 54 #undef SPEC_64 |
43 #if TARGET_64BIT_DEFAULT | 55 #if TARGET_64BIT_DEFAULT |
44 #define SPEC_32 "m32" | 56 #define SPEC_32 "m32" |