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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [uwin.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 U/WIN (Windows32), using GNU tools and the Windows32 API
3
   Library, as distinct from winnt.h, which is used to build GCC for use
4
   with a windows style library and tool set and uses the Microsoft tools.
5
   Copyright (C) 1999, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
6
   Contributed by Mumit Khan  <khan@xraylith.wisc.edu>.
7
 
8
This file is part of GCC.
9
 
10
GCC is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 3, or (at your option)
13
any later version.
14
 
15
GCC is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
GNU General Public License for more details.
19
 
20
You should have received a copy of the GNU General Public License
21
along with GCC; see the file COPYING3.  If not see
22
<http://www.gnu.org/licenses/>.  */
23
 
24
/* Most of this is the same as for Cygwin32, except for changing some
25
   specs.  */
26
 
27
#define STANDARD_INCLUDE_COMPONENT "UWIN"
28
#define SYSTEM_INCLUDE_DIR "/usr/gnu/include"
29
#undef MD_STARTFILE_PREFIX
30
#define MD_STARTFILE_PREFIX "/usr/gnu/lib/"
31
 
32
#undef MAYBE_UWIN_CPP_BUILTINS
33
#define MAYBE_UWIN_CPP_BUILTINS()                       \
34
  do                                                    \
35
    {                                                   \
36
        builtin_define_std ("WINNT");                   \
37
        builtin_define ("_WIN32");                      \
38
        builtin_define ("__WIN32__");                   \
39
        builtin_define ("_UWIN");                       \
40
        builtin_define ("__UWIN__");                    \
41
        builtin_define ("__MSVCRT__");                  \
42
        builtin_define ("_STD_INCLUDE_DIR=mingw32");    \
43
    }                                                   \
44
  while (0)
45
 
46
#undef CPP_SPEC
47
#define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
48
  -include /usr/include/astwin32.h \
49
  -idirafter /usr/gnu/include/mingw32"
50
 
51
/* For Windows applications, include more libraries, but always include
52
   kernel32.  */
53
#undef LIB_SPEC
54
#define LIB_SPEC \
55
  "%{pg:-lgmon} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32"
56
 
57
/* Include in the mingw32 libraries with libgcc */
58
#undef LIBGCC_SPEC
59
#define LIBGCC_SPEC "-lgnuwin -lposix -lgcc -last -lmoldname -lmsvcrt"
60
 
61
/* Specify a different entry point when linking a DLL */
62
#undef LINK_SPEC
63
#define LINK_SPEC \
64
  "%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12} \
65
  %{!mdll:-u _main}"
66
 
67
#undef STARTFILE_SPEC
68
#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s} %{pg:gcrt2%O%s}"
69
 
70
/* These are PE BFD bug workarounds. Should go away eventually.  */
71
 
72
/* Write the extra assembler code needed to declare a function
73
   properly.  If we are generating SDB debugging information, this
74
   will happen automatically, so we only need to handle other cases.  */
75
#undef ASM_DECLARE_FUNCTION_NAME
76
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
77
  do                                                                    \
78
    {                                                                   \
79
      if (i386_pe_dllexport_name_p (NAME))                              \
80
        i386_pe_record_exported_symbol (NAME, 0);                       \
81
      /* UWIN binutils bug workaround.  */                              \
82
      if (0 && write_symbols != SDB_DEBUG)                              \
83
        i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL)); \
84
      ASM_OUTPUT_LABEL (FILE, NAME);                                    \
85
    }                                                                   \
86
  while (0)
87
 
88
#undef ASM_OUTPUT_EXTERNAL
89
#undef ASM_OUTPUT_EXTERNAL_LIBCALL
90
 

powered by: WebSVN 2.1.0

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