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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [uwin.h] - Diff between revs 38 and 154

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* Operating system specific defines to be used when targeting GCC for
/* Operating system specific defines to be used when targeting GCC for
   hosting on U/WIN (Windows32), using GNU tools and the Windows32 API
   hosting on U/WIN (Windows32), using GNU tools and the Windows32 API
   Library, as distinct from winnt.h, which is used to build GCC for use
   Library, as distinct from winnt.h, which is used to build GCC for use
   with a windows style library and tool set and uses the Microsoft tools.
   with a windows style library and tool set and uses the Microsoft tools.
   Copyright (C) 1999, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
   Copyright (C) 1999, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
   Contributed by Mumit Khan  <khan@xraylith.wisc.edu>.
   Contributed by Mumit Khan  <khan@xraylith.wisc.edu>.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
/* Most of this is the same as for Cygwin32, except for changing some
/* Most of this is the same as for Cygwin32, except for changing some
   specs.  */
   specs.  */
 
 
#define STANDARD_INCLUDE_COMPONENT "UWIN"
#define STANDARD_INCLUDE_COMPONENT "UWIN"
#define SYSTEM_INCLUDE_DIR "/usr/gnu/include"
#define SYSTEM_INCLUDE_DIR "/usr/gnu/include"
#undef MD_STARTFILE_PREFIX
#undef MD_STARTFILE_PREFIX
#define MD_STARTFILE_PREFIX "/usr/gnu/lib/"
#define MD_STARTFILE_PREFIX "/usr/gnu/lib/"
 
 
#undef MAYBE_UWIN_CPP_BUILTINS
#undef MAYBE_UWIN_CPP_BUILTINS
#define MAYBE_UWIN_CPP_BUILTINS()                       \
#define MAYBE_UWIN_CPP_BUILTINS()                       \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
        builtin_define_std ("WINNT");                   \
        builtin_define_std ("WINNT");                   \
        builtin_define ("_WIN32");                      \
        builtin_define ("_WIN32");                      \
        builtin_define ("__WIN32__");                   \
        builtin_define ("__WIN32__");                   \
        builtin_define ("_UWIN");                       \
        builtin_define ("_UWIN");                       \
        builtin_define ("__UWIN__");                    \
        builtin_define ("__UWIN__");                    \
        builtin_define ("__MSVCRT__");                  \
        builtin_define ("__MSVCRT__");                  \
        builtin_define ("_STD_INCLUDE_DIR=mingw32");    \
        builtin_define ("_STD_INCLUDE_DIR=mingw32");    \
    }                                                   \
    }                                                   \
  while (0)
  while (0)
 
 
#undef CPP_SPEC
#undef CPP_SPEC
#define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
#define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
  -include /usr/include/astwin32.h \
  -include /usr/include/astwin32.h \
  -idirafter /usr/gnu/include/mingw32"
  -idirafter /usr/gnu/include/mingw32"
 
 
/* For Windows applications, include more libraries, but always include
/* For Windows applications, include more libraries, but always include
   kernel32.  */
   kernel32.  */
#undef LIB_SPEC
#undef LIB_SPEC
#define LIB_SPEC \
#define LIB_SPEC \
  "%{pg:-lgmon} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32"
  "%{pg:-lgmon} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32"
 
 
/* Include in the mingw32 libraries with libgcc */
/* Include in the mingw32 libraries with libgcc */
#undef LIBGCC_SPEC
#undef LIBGCC_SPEC
#define LIBGCC_SPEC "-lgnuwin -lposix -lgcc -last -lmoldname -lmsvcrt"
#define LIBGCC_SPEC "-lgnuwin -lposix -lgcc -last -lmoldname -lmsvcrt"
 
 
/* Specify a different entry point when linking a DLL */
/* Specify a different entry point when linking a DLL */
#undef LINK_SPEC
#undef LINK_SPEC
#define LINK_SPEC \
#define LINK_SPEC \
  "%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12} \
  "%{mwindows:--subsystem windows} %{mdll:--dll -e _DllMainCRTStartup@12} \
  %{!mdll:-u _main}"
  %{!mdll:-u _main}"
 
 
#undef STARTFILE_SPEC
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s} %{pg:gcrt2%O%s}"
#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s} %{pg:gcrt2%O%s}"
 
 
/* These are PE BFD bug workarounds. Should go away eventually.  */
/* These are PE BFD bug workarounds. Should go away eventually.  */
 
 
/* Write the extra assembler code needed to declare a function
/* Write the extra assembler code needed to declare a function
   properly.  If we are generating SDB debugging information, this
   properly.  If we are generating SDB debugging information, this
   will happen automatically, so we only need to handle other cases.  */
   will happen automatically, so we only need to handle other cases.  */
#undef ASM_DECLARE_FUNCTION_NAME
#undef ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      if (i386_pe_dllexport_name_p (NAME))                              \
      if (i386_pe_dllexport_name_p (NAME))                              \
        i386_pe_record_exported_symbol (NAME, 0);                       \
        i386_pe_record_exported_symbol (NAME, 0);                       \
      /* UWIN binutils bug workaround.  */                              \
      /* UWIN binutils bug workaround.  */                              \
      if (0 && write_symbols != SDB_DEBUG)                              \
      if (0 && write_symbols != SDB_DEBUG)                              \
        i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL)); \
        i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL)); \
      ASM_OUTPUT_LABEL (FILE, NAME);                                    \
      ASM_OUTPUT_LABEL (FILE, NAME);                                    \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#undef ASM_OUTPUT_EXTERNAL
#undef ASM_OUTPUT_EXTERNAL
#undef ASM_OUTPUT_EXTERNAL_LIBCALL
#undef ASM_OUTPUT_EXTERNAL_LIBCALL
 
 
 
 

powered by: WebSVN 2.1.0

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