OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [mingw32.h] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Operating system specific defines to be used when targeting GCC for
2
   hosting on Windows32, using GNU tools and the Windows32 API Library.
3
   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2007
4
   Free Software Foundation, Inc.
5
 
6
This file is part of GCC.
7
 
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.
12
 
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.
17
 
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/>.  */
21
 
22
#undef TARGET_VERSION
23
#define TARGET_VERSION fprintf (stderr, " (x86 MinGW)"); 
24
 
25
/* See i386/crtdll.h for an alternative definition.  */
26
#define EXTRA_OS_CPP_BUILTINS()                                 \
27
  do                                                            \
28
    {                                                           \
29
      builtin_define ("__MSVCRT__");                            \
30
      builtin_define ("__MINGW32__");                           \
31
      builtin_define ("_WIN32");                                \
32
      builtin_define_std ("WIN32");                             \
33
      builtin_define_std ("WINNT");                             \
34
    }                                                           \
35
  while (0)
36
 
37
/* Override the standard choice of /usr/include as the default prefix
38
   to try when searching for header files.  */
39
#undef STANDARD_INCLUDE_DIR
40
#define STANDARD_INCLUDE_DIR "/mingw/include"
41
#undef STANDARD_INCLUDE_COMPONENT
42
#define STANDARD_INCLUDE_COMPONENT "MINGW"
43
 
44
#undef CPP_SPEC
45
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT}"
46
 
47
/* For Windows applications, include more libraries, but always include
48
   kernel32.  */
49
#undef LIB_SPEC
50
#define LIB_SPEC "%{pg:-lgmon} %{mwindows:-lgdi32 -lcomdlg32} \
51
                  -luser32 -lkernel32 -ladvapi32 -lshell32"
52
 
53
/* Include in the mingw32 libraries with libgcc */
54
#undef LINK_SPEC
55
#define LINK_SPEC "%{mwindows:--subsystem windows} \
56
  %{mconsole:--subsystem console} \
57
  %{shared: %{mdll: %eshared and mdll are not compatible}} \
58
  %{shared: --shared} %{mdll:--dll} \
59
  %{static:-Bstatic} %{!static:-Bdynamic} \
60
  %{shared|mdll: -e _DllMainCRTStartup@12}"
61
 
62
/* Include in the mingw32 libraries with libgcc */
63
#undef LIBGCC_SPEC
64
#define LIBGCC_SPEC \
65
  "%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt"
66
 
67
#undef STARTFILE_SPEC
68
#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
69
  %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s}"
70
 
71
/* Override startfile prefix defaults.  */
72
#ifndef STANDARD_STARTFILE_PREFIX_1
73
#define STANDARD_STARTFILE_PREFIX_1 "/mingw/lib/"
74
#endif
75
#ifndef STANDARD_STARTFILE_PREFIX_2
76
#define STANDARD_STARTFILE_PREFIX_2 ""
77
#endif
78
 
79
/* Output STRING, a string representing a filename, to FILE.
80
   We canonicalize it to be in Unix format (backslashes are replaced
81
   forward slashes.  */
82
#undef OUTPUT_QUOTED_STRING
83
#define OUTPUT_QUOTED_STRING(FILE, STRING)               \
84
do {                                                     \
85
  char c;                                                \
86
                                                         \
87
  putc ('\"', asm_file);                                 \
88
                                                         \
89
  while ((c = *string++) != 0)                           \
90
    {                                                    \
91
      if (c == '\\')                                     \
92
        c = '/';                                         \
93
                                                         \
94
      if (ISPRINT (c))                                   \
95
        {                                                \
96
          if (c == '\"')                                 \
97
            putc ('\\', asm_file);                       \
98
          putc (c, asm_file);                            \
99
        }                                                \
100
      else                                               \
101
        fprintf (asm_file, "\\%03o", (unsigned char) c); \
102
    }                                                    \
103
                                                         \
104
  putc ('\"', asm_file);                                 \
105
} while (0)
106
 
107
/* Define as short unsigned for compatibility with MS runtime.  */
108
#undef WINT_TYPE
109
#define WINT_TYPE "short unsigned int"
110
 
111
/* mingw32 uses the  -mthreads option to enable thread support.  */
112
#undef GOMP_SELF_SPECS
113
#define GOMP_SELF_SPECS "%{fopenmp: -mthreads}"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.