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

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

Rev 38 Rev 154
/* Definitions of target machine for GNU compiler, for MCore using COFF/PE.
/* Definitions of target machine for GNU compiler, for MCore using COFF/PE.
   Copyright (C) 1994, 1999, 2000, 2002, 2003, 2004, 2007
   Copyright (C) 1994, 1999, 2000, 2002, 2003, 2004, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Contributed by Michael Tiemann (tiemann@cygnus.com).
   Contributed by Michael Tiemann (tiemann@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/>.  */
 
 
/* Run-time Target Specification.  */
/* Run-time Target Specification.  */
#define TARGET_VERSION fputs (" (MCORE/pe)", stderr)
#define TARGET_VERSION fputs (" (MCORE/pe)", stderr)
 
 
#define TARGET_OS_CPP_BUILTINS()                                \
#define TARGET_OS_CPP_BUILTINS()                                \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      builtin_define ("__pe__");                                \
      builtin_define ("__pe__");                                \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
/* The MCore ABI says that bitfields are unsigned by default.  */
/* The MCore ABI says that bitfields are unsigned by default.  */
/* The EPOC C++ environment does not support exceptions.  */
/* The EPOC C++ environment does not support exceptions.  */
#undef CC1_SPEC
#undef CC1_SPEC
#define CC1_SPEC "-funsigned-bitfields %{!DIN_GCC:-fno-rtti} %{!DIN_GCC:-fno-exceptions}"
#define CC1_SPEC "-funsigned-bitfields %{!DIN_GCC:-fno-rtti} %{!DIN_GCC:-fno-exceptions}"
 
 
#undef  SDB_DEBUGGING_INFO
#undef  SDB_DEBUGGING_INFO
#define DBX_DEBUGGING_INFO 1
#define DBX_DEBUGGING_INFO 1
 
 
/* Computed in toplev.c.  */
/* Computed in toplev.c.  */
#undef  PREFERRED_DEBUGGING_TYPE
#undef  PREFERRED_DEBUGGING_TYPE
 
 
#define READONLY_DATA_SECTION_ASM_OP    "\t.section .rdata"
#define READONLY_DATA_SECTION_ASM_OP    "\t.section .rdata"
 
 
#define MCORE_EXPORT_NAME(STREAM, NAME)                 \
#define MCORE_EXPORT_NAME(STREAM, NAME)                 \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
      fprintf (STREAM, "\t.section .drectve\n");        \
      fprintf (STREAM, "\t.section .drectve\n");        \
      fprintf (STREAM, "\t.ascii \" -export:%s\"\n",    \
      fprintf (STREAM, "\t.ascii \" -export:%s\"\n",    \
               (* targetm.strip_name_encoding) (NAME)); \
               (* targetm.strip_name_encoding) (NAME)); \
      in_section = NULL;                                \
      in_section = NULL;                                \
    }                                                   \
    }                                                   \
  while (0);
  while (0);
 
 
/* Output the label for an initialized variable.  */
/* Output the label for an initialized variable.  */
#undef  ASM_DECLARE_OBJECT_NAME
#undef  ASM_DECLARE_OBJECT_NAME
#define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL)             \
#define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL)             \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      if (mcore_dllexport_name_p (NAME))                        \
      if (mcore_dllexport_name_p (NAME))                        \
        {                                                       \
        {                                                       \
          section *save_section = in_section;                   \
          section *save_section = in_section;                   \
          MCORE_EXPORT_NAME (STREAM, NAME);                     \
          MCORE_EXPORT_NAME (STREAM, NAME);                     \
          switch_to_section (save_section);                     \
          switch_to_section (save_section);                     \
        }                                                       \
        }                                                       \
      ASM_OUTPUT_LABEL ((STREAM), (NAME));                      \
      ASM_OUTPUT_LABEL ((STREAM), (NAME));                      \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
/* Output a function label definition.  */
/* Output a function label definition.  */
#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)           \
#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)           \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      if (mcore_dllexport_name_p (NAME))                        \
      if (mcore_dllexport_name_p (NAME))                        \
        {                                                       \
        {                                                       \
          MCORE_EXPORT_NAME (STREAM, NAME);                     \
          MCORE_EXPORT_NAME (STREAM, NAME);                     \
          switch_to_section (function_section (DECL));          \
          switch_to_section (function_section (DECL));          \
        }                                                       \
        }                                                       \
      ASM_OUTPUT_LABEL ((STREAM), (NAME));                      \
      ASM_OUTPUT_LABEL ((STREAM), (NAME));                      \
    }                                                           \
    }                                                           \
  while (0);
  while (0);
 
 
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
 
 
#define DBX_LINES_FUNCTION_RELATIVE 1
#define DBX_LINES_FUNCTION_RELATIVE 1
 
 
#define STARTFILE_SPEC "crt0.o%s"
#define STARTFILE_SPEC "crt0.o%s"
#define ENDFILE_SPEC  "%{!mno-lsim:-lsim}"
#define ENDFILE_SPEC  "%{!mno-lsim:-lsim}"
 
 
/* __CTOR_LIST__ and __DTOR_LIST__ must be defined by the linker script.  */
/* __CTOR_LIST__ and __DTOR_LIST__ must be defined by the linker script.  */
#define CTOR_LISTS_DEFINED_EXTERNALLY
#define CTOR_LISTS_DEFINED_EXTERNALLY
 
 
#undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_DTORS_BODY
#undef DO_GLOBAL_DTORS_BODY
#undef INIT_SECTION_ASM_OP
#undef INIT_SECTION_ASM_OP
#undef DTORS_SECTION_ASM_OP
#undef DTORS_SECTION_ASM_OP
 
 
#define SUPPORTS_ONE_ONLY 1
#define SUPPORTS_ONE_ONLY 1
 
 
/* Switch into a generic section.  */
/* Switch into a generic section.  */
#undef TARGET_ASM_NAMED_SECTION
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
#define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
 
 

powered by: WebSVN 2.1.0

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