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

Subversion Repositories openrisc

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

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

Rev 154 Rev 816
/* Solaris 10 configuration.
/* Solaris 10 configuration.
   Copyright (C) 2004, 2007 Free Software Foundation, Inc.
   Copyright (C) 2004, 2007 Free Software Foundation, Inc.
   Contributed by CodeSourcery, LLC.
   Contributed by CodeSourcery, LLC.
 
 
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/>.  */
 
 
#undef ASM_COMMENT_START
#undef ASM_COMMENT_START
#define ASM_COMMENT_START "/"
#define ASM_COMMENT_START "/"
 
 
/* binutils' GNU as understands --32 and --64, but the native Solaris
/* binutils' GNU as understands --32 and --64, but the native Solaris
   assembler requires -xarch=generic or -xarch=generic64 instead.  */
   assembler requires -xarch=generic or -xarch=generic64 instead.  */
#undef ASM_SPEC
#undef ASM_SPEC
#ifdef USE_GAS
#ifdef USE_GAS
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
                 "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)"
                 "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)"
#else
#else
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \
                 "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \
                 "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \
                 "-s %(asm_cpu)"
                 "-s %(asm_cpu)"
#endif
#endif
 
 
#undef NO_PROFILE_COUNTERS
#undef NO_PROFILE_COUNTERS
 
 
#undef MCOUNT_NAME
#undef MCOUNT_NAME
#define MCOUNT_NAME "_mcount"
#define MCOUNT_NAME "_mcount"
 
 
#undef WCHAR_TYPE
#undef WCHAR_TYPE
#define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int")
#define WCHAR_TYPE (TARGET_64BIT ? "int" : "long int")
#undef WCHAR_TYPE_SIZE
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
#define WCHAR_TYPE_SIZE 32
 
 
#undef WINT_TYPE
#undef WINT_TYPE
#define WINT_TYPE (TARGET_64BIT ? "int" : "long int")
#define WINT_TYPE (TARGET_64BIT ? "int" : "long int")
#undef WINT_TYPE_SIZE
#undef WINT_TYPE_SIZE
#define WINT_TYPE_SIZE 32
#define WINT_TYPE_SIZE 32
 
 
#define SUBTARGET_OVERRIDE_OPTIONS                              \
#define SUBTARGET_OVERRIDE_OPTIONS                              \
  do                                                            \
  do                                                            \
    {                                                           \
    {                                                           \
      if (flag_omit_frame_pointer == 2)                         \
      if (flag_omit_frame_pointer == 2)                         \
        flag_omit_frame_pointer = 0;                             \
        flag_omit_frame_pointer = 0;                             \
    }                                                           \
    }                                                           \
  while (0)
  while (0)
 
 
#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_FLOAT_RETURNS)
 
 
#define SUBTARGET_OPTIMIZATION_OPTIONS                  \
#define SUBTARGET_OPTIMIZATION_OPTIONS                  \
  do                                                    \
  do                                                    \
    {                                                   \
    {                                                   \
      if (optimize >= 1)                                \
      if (optimize >= 1)                                \
        target_flags |= MASK_OMIT_LEAF_FRAME_POINTER;   \
        target_flags |= MASK_OMIT_LEAF_FRAME_POINTER;   \
    }                                                   \
    }                                                   \
  while (0)
  while (0)
 
 
#define MULTILIB_DEFAULTS { "m32" }
#define MULTILIB_DEFAULTS { "m32" }
 
 
#undef LINK_ARCH64_SPEC_BASE
#undef LINK_ARCH64_SPEC_BASE
#define LINK_ARCH64_SPEC_BASE \
#define LINK_ARCH64_SPEC_BASE \
  "%{G:-G} \
  "%{G:-G} \
   %{YP,*} \
   %{YP,*} \
   %{R*} \
   %{R*} \
   %{compat-bsd: \
   %{compat-bsd: \
     %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \
     %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \
             %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \
             %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \
             -R /usr/ucblib/64} \
             -R /usr/ucblib/64} \
   %{!compat-bsd: \
   %{!compat-bsd: \
     %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
     %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
 
 
#undef LINK_ARCH64_SPEC
#undef LINK_ARCH64_SPEC
#define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
#define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
 
 
#ifdef TARGET_GNU_LD
#ifdef TARGET_GNU_LD
#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:-m elf_i386} "
#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{!m64:-m elf_i386} "
#else
#else
#define TARGET_LD_EMULATION ""
#define TARGET_LD_EMULATION ""
#endif
#endif
 
 
#undef LINK_ARCH_SPEC
#undef LINK_ARCH_SPEC
#define LINK_ARCH_SPEC TARGET_LD_EMULATION \
#define LINK_ARCH_SPEC TARGET_LD_EMULATION \
                       "%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}"
                       "%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}"
 
 
/* We do not need to search a special directory for startup files.  */
/* We do not need to search a special directory for startup files.  */
#undef MD_STARTFILE_PREFIX
#undef MD_STARTFILE_PREFIX
 
 
#undef TARGET_ASM_NAMED_SECTION
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
 
 
/* In 32-bit mode, follow the SVR4 ABI definition; in 64-bit mode, use
/* In 32-bit mode, follow the SVR4 ABI definition; in 64-bit mode, use
   the AMD64 ABI definition.  */
   the AMD64 ABI definition.  */
#undef RETURN_IN_MEMORY
#undef RETURN_IN_MEMORY
#define RETURN_IN_MEMORY(TYPE)                  \
#define RETURN_IN_MEMORY(TYPE)                  \
  (TARGET_64BIT                                 \
  (TARGET_64BIT                                 \
   ? ix86_return_in_memory (TYPE)               \
   ? ix86_return_in_memory (TYPE)               \
   : (TYPE_MODE (TYPE) == BLKmode               \
   : (TYPE_MODE (TYPE) == BLKmode               \
      || (VECTOR_MODE_P (TYPE_MODE (TYPE))      \
      || (VECTOR_MODE_P (TYPE_MODE (TYPE))      \
          && int_size_in_bytes (TYPE) == 8)))
          && int_size_in_bytes (TYPE) == 8)))
 
 

powered by: WebSVN 2.1.0

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