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/] [netware.h] - Diff between revs 38 and 154

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

Rev 38 Rev 154
/* Core target definitions for GCC for Intel 80x86 running Netware.
/* Core target definitions for GCC for Intel 80x86 running Netware.
   and using dwarf for the debugging format.
   and using dwarf for the debugging format.
   Copyright (C) 1993, 1994, 2004, 2007 Free Software Foundation, Inc.
   Copyright (C) 1993, 1994, 2004, 2007 Free Software Foundation, Inc.
 
 
   Written by David V. Henkel-Wallace (gumby@cygnus.com)
   Written by David V. Henkel-Wallace (gumby@cygnus.com)
 
 
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/>.  */
 
 
#define TARGET_VERSION fprintf (stderr, " (x86 NetWare)");
#define TARGET_VERSION fprintf (stderr, " (x86 NetWare)");
 
 
#undef  CPP_SPEC
#undef  CPP_SPEC
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 
#undef  LIB_SPEC
#undef  LIB_SPEC
#define LIB_SPEC ""
#define LIB_SPEC ""
 
 
/* Kinda useless, but what the hell */
/* Kinda useless, but what the hell */
#undef  LINK_SPEC
#undef  LINK_SPEC
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
                   %{b} \
                   %{b} \
                   %{Qy:} %{!Qn:-Qy}"
                   %{Qy:} %{!Qn:-Qy}"
 
 
#undef  STARTFILE_SPEC
#undef  STARTFILE_SPEC
#define STARTFILE_SPEC ""
#define STARTFILE_SPEC ""
 
 
#undef  ENDFILE_SPEC
#undef  ENDFILE_SPEC
#define ENDFILE_SPEC ""
#define ENDFILE_SPEC ""
 
 
#undef  RELATIVE_PREFIX_NOT_LINKDIR
#undef  RELATIVE_PREFIX_NOT_LINKDIR
#undef  LIBGCC_SPEC
#undef  LIBGCC_SPEC
 
 
#define TARGET_OS_CPP_BUILTINS()                                        \
#define TARGET_OS_CPP_BUILTINS()                                        \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
        builtin_define_std ("IAPX386");                                 \
        builtin_define_std ("IAPX386");                                 \
        builtin_define ("_M_IX86=300");                                 \
        builtin_define ("_M_IX86=300");                                 \
        builtin_define ("__netware__");                                 \
        builtin_define ("__netware__");                                 \
        builtin_assert ("system=netware");                              \
        builtin_assert ("system=netware");                              \
        builtin_define ("__ELF__");                                     \
        builtin_define ("__ELF__");                                     \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
        builtin_define ("__fastcall=__attribute__((__fastcall__))");    \
        builtin_define ("__fastcall=__attribute__((__fastcall__))");    \
        if (!flag_iso)                                                  \
        if (!flag_iso)                                                  \
          {                                                             \
          {                                                             \
            builtin_define ("_cdecl=__attribute__((__cdecl__))");       \
            builtin_define ("_cdecl=__attribute__((__cdecl__))");       \
            builtin_define ("_stdcall=__attribute__((__stdcall__))");   \
            builtin_define ("_stdcall=__attribute__((__stdcall__))");   \
            builtin_define ("_fastcall=__attribute__((__fastcall__))"); \
            builtin_define ("_fastcall=__attribute__((__fastcall__))"); \
          }                                                             \
          }                                                             \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#undef TARGET_CPU_DEFAULT
#undef TARGET_CPU_DEFAULT
#define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_pentium4
#define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_pentium4
 
 
/* By default, target has a 80387, uses IEEE compatible arithmetic,
/* By default, target has a 80387, uses IEEE compatible arithmetic,
   returns float values in the 387, and uses MSVC bit field layout. */
   returns float values in the 387, and uses MSVC bit field layout. */
#undef TARGET_SUBTARGET_DEFAULT
#undef TARGET_SUBTARGET_DEFAULT
#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | \
#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | \
        MASK_FLOAT_RETURNS | MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
        MASK_FLOAT_RETURNS | MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
 
 
#undef MATH_LIBRARY
#undef MATH_LIBRARY
#define MATH_LIBRARY ""
#define MATH_LIBRARY ""
 
 
/* Align doubles and long-longs in structures on qword boundaries.  */
/* Align doubles and long-longs in structures on qword boundaries.  */
#undef BIGGEST_FIELD_ALIGNMENT
#undef BIGGEST_FIELD_ALIGNMENT
#define BIGGEST_FIELD_ALIGNMENT 64
#define BIGGEST_FIELD_ALIGNMENT 64
 
 
#undef DEFAULT_PCC_STRUCT_RETURN
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 0
#define DEFAULT_PCC_STRUCT_RETURN 0
 
 
/* Implicit arguments pointing to aggregate return values are to be
/* Implicit arguments pointing to aggregate return values are to be
   removed by the caller.  */
   removed by the caller.  */
#undef KEEP_AGGREGATE_RETURN_POINTER
#undef KEEP_AGGREGATE_RETURN_POINTER
#define KEEP_AGGREGATE_RETURN_POINTER 1
#define KEEP_AGGREGATE_RETURN_POINTER 1
 
 
#undef DBX_REGISTER_NUMBER
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) (svr4_dbx_register_map[n])
#define DBX_REGISTER_NUMBER(n) (svr4_dbx_register_map[n])
 
 
/* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop).  */
/* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop).  */
#define HANDLE_PRAGMA_PACK_PUSH_POP
#define HANDLE_PRAGMA_PACK_PUSH_POP
 
 
/* Default structure packing is 1-byte. */
/* Default structure packing is 1-byte. */
#define TARGET_DEFAULT_PACK_STRUCT 1
#define TARGET_DEFAULT_PACK_STRUCT 1
 
 
#undef WCHAR_TYPE
#undef WCHAR_TYPE
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE "short unsigned int"
 
 
#undef WCHAR_TYPE_SIZE
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 16
#define WCHAR_TYPE_SIZE 16
 
 
#undef WINT_TYPE
#undef WINT_TYPE
#define WINT_TYPE "int"
#define WINT_TYPE "int"
 
 
/* A C statement (sans semicolon) to output to the stdio stream
/* A C statement (sans semicolon) to output to the stdio stream
   FILE the assembler definition of uninitialized global DECL named
   FILE the assembler definition of uninitialized global DECL named
   NAME whose size is SIZE bytes and alignment is ALIGN bytes.
   NAME whose size is SIZE bytes and alignment is ALIGN bytes.
   Try to use asm_output_aligned_bss to implement this macro.  */
   Try to use asm_output_aligned_bss to implement this macro.  */
 
 
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
 
 
/* Handle special EH pointer encodings.  Absolute, pc-relative, and
/* Handle special EH pointer encodings.  Absolute, pc-relative, and
   indirect are handled automatically.  */
   indirect are handled automatically.  */
#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
  do {                                                                  \
  do {                                                                  \
    if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel)         \
    if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel)         \
      {                                                                 \
      {                                                                 \
        fputs (ASM_LONG, FILE);                 \
        fputs (ASM_LONG, FILE);                 \
        assemble_name (FILE, XSTR (ADDR, 0));                           \
        assemble_name (FILE, XSTR (ADDR, 0));                           \
        fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
        fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
        goto DONE;                                                      \
        goto DONE;                                                      \
      }                                                                 \
      }                                                                 \
  } while (0)
  } while (0)
 
 
/* there is no TLS support in NLMs/on NetWare */
/* there is no TLS support in NLMs/on NetWare */
#undef HAVE_AS_TLS
#undef HAVE_AS_TLS
 
 
#define HAS_INIT_SECTION
#define HAS_INIT_SECTION
#undef  INIT_SECTION_ASM_OP
#undef  INIT_SECTION_ASM_OP
 
 
#define CTOR_LISTS_DEFINED_EXTERNALLY
#define CTOR_LISTS_DEFINED_EXTERNALLY
 
 
#undef  READONLY_DATA_SECTION_ASM_OP
#undef  READONLY_DATA_SECTION_ASM_OP
#define READONLY_DATA_SECTION_ASM_OP    ".section\t.rodata"
#define READONLY_DATA_SECTION_ASM_OP    ".section\t.rodata"
 
 
/* Define this macro if references to a symbol must be treated
/* Define this macro if references to a symbol must be treated
   differently depending on something about the variable or
   differently depending on something about the variable or
   function named by the symbol (such as what section it is in).
   function named by the symbol (such as what section it is in).
 
 
   On i386 running NetWare, modify the assembler name with an underscore (_)
   On i386 running NetWare, modify the assembler name with an underscore (_)
   prefix and a suffix consisting of an atsign (@) followed by a string of
   prefix and a suffix consisting of an atsign (@) followed by a string of
   digits that represents the number of bytes of arguments passed to the
   digits that represents the number of bytes of arguments passed to the
   function, if it has the attribute STDCALL. Alternatively, if it has the
   function, if it has the attribute STDCALL. Alternatively, if it has the
   REGPARM attribute, prefix it with an underscore (_), a digit representing
   REGPARM attribute, prefix it with an underscore (_), a digit representing
   the number of registers used, and an atsign (@). */
   the number of registers used, and an atsign (@). */
void i386_nlm_encode_section_info (tree, rtx, int);
void i386_nlm_encode_section_info (tree, rtx, int);
const char *i386_nlm_strip_name_encoding (const char *);
const char *i386_nlm_strip_name_encoding (const char *);
#undef TARGET_ENCODE_SECTION_INFO
#undef TARGET_ENCODE_SECTION_INFO
#define TARGET_ENCODE_SECTION_INFO  i386_nlm_encode_section_info
#define TARGET_ENCODE_SECTION_INFO  i386_nlm_encode_section_info
#undef  TARGET_STRIP_NAME_ENCODING
#undef  TARGET_STRIP_NAME_ENCODING
#define TARGET_STRIP_NAME_ENCODING  i386_nlm_strip_name_encoding
#define TARGET_STRIP_NAME_ENCODING  i386_nlm_strip_name_encoding
 
 

powered by: WebSVN 2.1.0

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