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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [interix.h] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* Operating system specific defines to be used when targeting GCC for
/* Operating system specific defines to be used when targeting GCC for
   Interix
   Interix
   Copyright (C) 1994, 1995, 1999, 2002, 2004, 2007
   Copyright (C) 1994, 1995, 1999, 2002, 2004, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Donn Terry, Softway Systems, Inc. (donn@softway.com)
   Donn Terry, Softway Systems, Inc. (donn@softway.com)
   Modified from code
   Modified from code
      Contributed by Douglas B. Rupp (drupp@cs.washington.edu).
      Contributed by Douglas B. Rupp (drupp@cs.washington.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/>.  */
 
 
/* POSIX/Uni-thread only for now.  Look at the winnt version
/* POSIX/Uni-thread only for now.  Look at the winnt version
for windows/multi thread */
for windows/multi thread */
 
 
/* We need multiple -lc -lcpsx because they mutually refer;
/* We need multiple -lc -lcpsx because they mutually refer;
   that should go away someday */
   that should go away someday */
 
 
#undef LIB_SPEC
#undef LIB_SPEC
#define LIB_SPEC "\
#define LIB_SPEC "\
 %{!shared:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
 %{!shared:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 }} \
 }} \
 %{!G:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
 %{!G:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 }} \
 }} \
 %{dynamic:-lc %$INTERIX_ROOT/usr/lib/psxdll.a \
 %{dynamic:-lc %$INTERIX_ROOT/usr/lib/psxdll.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 %$INTERIX_ROOT/usr/lib/psxdll2.a \
 } \
 } \
 %{v}"
 %{v}"
 
 
#undef LINK_SPEC
#undef LINK_SPEC
#define LINK_SPEC "%{!shared:-stack 0x400000,0x10000} \
#define LINK_SPEC "%{!shared:-stack 0x400000,0x10000} \
                   -subsystem posix \
                   -subsystem posix \
                   %{g} \
                   %{g} \
                   %{dynamic:-Bdynamic} \
                   %{dynamic:-Bdynamic} \
                   %{static:-Bstatic} \
                   %{static:-Bstatic} \
                   %{shared:--shared -Bdynamic} \
                   %{shared:--shared -Bdynamic} \
                   %{G:--shared -Bdynamic} \
                   %{G:--shared -Bdynamic} \
                   %{symbolic:--shared -Bsymbolic -Bdynamic} \
                   %{symbolic:--shared -Bsymbolic -Bdynamic} \
                   %{soname*:--soname %*} \
                   %{soname*:--soname %*} \
                   %{rpath*:--rpath %*} \
                   %{rpath*:--rpath %*} \
                   "
                   "
 
 
#undef STARTFILE_SPEC
#undef STARTFILE_SPEC
#define STARTFILE_SPEC  \
#define STARTFILE_SPEC  \
  "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}} %{shared:crti%O%s}"
  "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}} %{shared:crti%O%s}"
 
 
#undef WORD_SWITCH_TAKES_ARG
#undef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR)                                      \
#define WORD_SWITCH_TAKES_ARG(STR)                                      \
 ((DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                                  \
 ((DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                                  \
 || !strcmp(STR, "rpath"))                                              \
 || !strcmp(STR, "rpath"))                                              \
  && strcmp (STR, "Tdata") && strcmp (STR, "Ttext")                     \
  && strcmp (STR, "Tdata") && strcmp (STR, "Ttext")                     \
  && strcmp (STR, "Tbss"))
  && strcmp (STR, "Tbss"))
 
 
 
 
#define STDC_0_IN_SYSTEM_HEADERS 1
#define STDC_0_IN_SYSTEM_HEADERS 1
 
 
#define HANDLE_SYSV_PRAGMA 1
#define HANDLE_SYSV_PRAGMA 1
#undef HANDLE_PRAGMA_WEAK  /* until the link format can handle it */
#undef HANDLE_PRAGMA_WEAK  /* until the link format can handle it */
 
 
/* Names to predefine in the preprocessor for this target machine.  */
/* Names to predefine in the preprocessor for this target machine.  */
 
 
#define DBX_DEBUGGING_INFO 1
#define DBX_DEBUGGING_INFO 1
#define SDB_DEBUGGING_INFO 1
#define SDB_DEBUGGING_INFO 1
#undef PREFERRED_DEBUGGING_TYPE
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
 
 
 
/* TARGET_DEFAULT from configure */
/* TARGET_DEFAULT from configure */
 
 
#undef WCHAR_TYPE
#undef WCHAR_TYPE
#undef WCHAR_TYPE_SIZE
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE 16
#define WCHAR_TYPE_SIZE 16
 
 
/* Our strategy for finding global constructors is a bit different, although
/* Our strategy for finding global constructors is a bit different, although
   not a lot.  */
   not a lot.  */
#define DO_GLOBAL_CTORS_BODY                                            \
#define DO_GLOBAL_CTORS_BODY                                            \
do {                                                                    \
do {                                                                    \
  int i;                                                                \
  int i;                                                                \
  unsigned long nptrs;                                                  \
  unsigned long nptrs;                                                  \
  func_ptr *p;                                                          \
  func_ptr *p;                                                          \
  asm(                                                                  \
  asm(                                                                  \
       "     .section .ctor_head, \"rw\"\n"                             \
       "     .section .ctor_head, \"rw\"\n"                             \
       "1:\n"                                                           \
       "1:\n"                                                           \
       "     .text \n"                                                  \
       "     .text \n"                                                  \
       ASM_LOAD_ADDR(1b,%0)                                              \
       ASM_LOAD_ADDR(1b,%0)                                              \
       : "=r" (p) : : "cc");                                            \
       : "=r" (p) : : "cc");                                            \
  for (nptrs = 0; p[nptrs] != 0; nptrs++);                                \
  for (nptrs = 0; p[nptrs] != 0; nptrs++);                                \
  for (i = nptrs-1; i >= 0; i--)                                 \
  for (i = nptrs-1; i >= 0; i--)                                 \
    p[i] ();                                                            \
    p[i] ();                                                            \
} while (0)
} while (0)
 
 
#define DO_GLOBAL_DTORS_BODY                                            \
#define DO_GLOBAL_DTORS_BODY                                            \
do {                                                                    \
do {                                                                    \
  func_ptr *p;                                                          \
  func_ptr *p;                                                          \
  asm(                                                                  \
  asm(                                                                  \
       "     .section .dtor_head, \"rw\"\n"                             \
       "     .section .dtor_head, \"rw\"\n"                             \
       "1:\n"                                                           \
       "1:\n"                                                           \
       "     .text \n"                                                  \
       "     .text \n"                                                  \
       ASM_LOAD_ADDR(1b,%0)                                              \
       ASM_LOAD_ADDR(1b,%0)                                              \
       : "=r" (p) : : "cc");                                            \
       : "=r" (p) : : "cc");                                            \
  while (*p)                                                            \
  while (*p)                                                            \
    {                                                                   \
    {                                                                   \
      p++;                                                              \
      p++;                                                              \
      (*(p-1)) ();                                                      \
      (*(p-1)) ();                                                      \
    }                                                                   \
    }                                                                   \
} while (0)
} while (0)
 
 

powered by: WebSVN 2.1.0

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