OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [rs6000/] [linux.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
/* Definitions of target machine for GNU compiler,
/* Definitions of target machine for GNU compiler,
   for PowerPC machines running Linux.
   for PowerPC machines running Linux.
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
   2004, 2005, 2006, 2007 Free Software Foundation, Inc.
   2004, 2005, 2006, 2007 Free Software Foundation, Inc.
   Contributed by Michael Meissner (meissner@cygnus.com).
   Contributed by Michael Meissner (meissner@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 it
   GCC is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published
   under the terms of the GNU General Public License as published
   by the Free Software Foundation; either version 3, or (at your
   by the Free Software Foundation; either version 3, or (at your
   option) any later version.
   option) any later version.
 
 
   GCC is distributed in the hope that it will be useful, but WITHOUT
   GCC is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   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 MD_EXEC_PREFIX
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
#undef MD_STARTFILE_PREFIX
 
 
/* Linux doesn't support saving and restoring 64-bit regs in a 32-bit
/* Linux doesn't support saving and restoring 64-bit regs in a 32-bit
   process.  */
   process.  */
#define OS_MISSING_POWERPC64 1
#define OS_MISSING_POWERPC64 1
 
 
/* We use glibc _mcount for profiling.  */
/* We use glibc _mcount for profiling.  */
#define NO_PROFILE_COUNTERS 1
#define NO_PROFILE_COUNTERS 1
 
 
/* glibc has float and long double forms of math functions.  */
/* glibc has float and long double forms of math functions.  */
#undef  TARGET_C99_FUNCTIONS
#undef  TARGET_C99_FUNCTIONS
#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
 
 
#undef  TARGET_OS_CPP_BUILTINS
#undef  TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS()                \
#define TARGET_OS_CPP_BUILTINS()                \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
      builtin_define_std ("PPC");               \
      builtin_define_std ("PPC");               \
      builtin_define_std ("powerpc");           \
      builtin_define_std ("powerpc");           \
      builtin_assert ("cpu=powerpc");           \
      builtin_assert ("cpu=powerpc");           \
      builtin_assert ("machine=powerpc");       \
      builtin_assert ("machine=powerpc");       \
      TARGET_OS_SYSV_CPP_BUILTINS ();           \
      TARGET_OS_SYSV_CPP_BUILTINS ();           \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
#undef  CPP_OS_DEFAULT_SPEC
#undef  CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
 
 
/* The GNU C++ standard library currently requires _GNU_SOURCE being
/* The GNU C++ standard library currently requires _GNU_SOURCE being
   defined on glibc-based systems. This temporary hack accomplishes this,
   defined on glibc-based systems. This temporary hack accomplishes this,
   it should go away as soon as libstdc++-v3 has a real fix.  */
   it should go away as soon as libstdc++-v3 has a real fix.  */
#undef  CPLUSPLUS_CPP_SPEC
#undef  CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
 
 
#undef  LINK_SHLIB_SPEC
#undef  LINK_SHLIB_SPEC
#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
 
 
#undef  LIB_DEFAULT_SPEC
#undef  LIB_DEFAULT_SPEC
#define LIB_DEFAULT_SPEC "%(lib_linux)"
#define LIB_DEFAULT_SPEC "%(lib_linux)"
 
 
#undef  STARTFILE_DEFAULT_SPEC
#undef  STARTFILE_DEFAULT_SPEC
#define STARTFILE_DEFAULT_SPEC "%(startfile_linux)"
#define STARTFILE_DEFAULT_SPEC "%(startfile_linux)"
 
 
#undef  ENDFILE_DEFAULT_SPEC
#undef  ENDFILE_DEFAULT_SPEC
#define ENDFILE_DEFAULT_SPEC "%(endfile_linux)"
#define ENDFILE_DEFAULT_SPEC "%(endfile_linux)"
 
 
#undef  LINK_START_DEFAULT_SPEC
#undef  LINK_START_DEFAULT_SPEC
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
 
 
#undef  LINK_OS_DEFAULT_SPEC
#undef  LINK_OS_DEFAULT_SPEC
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
 
 
#define LINK_GCC_C_SEQUENCE_SPEC \
#define LINK_GCC_C_SEQUENCE_SPEC \
  "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
  "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
 
 
/* Use --as-needed -lgcc_s for eh support.  */
/* Use --as-needed -lgcc_s for eh support.  */
#ifdef HAVE_LD_AS_NEEDED
#ifdef HAVE_LD_AS_NEEDED
#define USE_LD_AS_NEEDED 1
#define USE_LD_AS_NEEDED 1
#endif
#endif
 
 
#undef  TARGET_VERSION
#undef  TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
#define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
 
 
/* Override rs6000.h definition.  */
/* Override rs6000.h definition.  */
#undef  ASM_APP_ON
#undef  ASM_APP_ON
#define ASM_APP_ON "#APP\n"
#define ASM_APP_ON "#APP\n"
 
 
/* Override rs6000.h definition.  */
/* Override rs6000.h definition.  */
#undef  ASM_APP_OFF
#undef  ASM_APP_OFF
#define ASM_APP_OFF "#NO_APP\n"
#define ASM_APP_OFF "#NO_APP\n"
 
 
/* For backward compatibility, we must continue to use the AIX
/* For backward compatibility, we must continue to use the AIX
   structure return convention.  */
   structure return convention.  */
#undef  DRAFT_V4_STRUCT_RET
#undef  DRAFT_V4_STRUCT_RET
#define DRAFT_V4_STRUCT_RET 1
#define DRAFT_V4_STRUCT_RET 1
 
 
/* We are 32-bit all the time, so optimize a little.  */
/* We are 32-bit all the time, so optimize a little.  */
#undef TARGET_64BIT
#undef TARGET_64BIT
#define TARGET_64BIT 0
#define TARGET_64BIT 0
 
 
/* We don't need to generate entries in .fixup, except when
/* We don't need to generate entries in .fixup, except when
   -mrelocatable or -mrelocatable-lib is given.  */
   -mrelocatable or -mrelocatable-lib is given.  */
#undef RELOCATABLE_NEEDS_FIXUP
#undef RELOCATABLE_NEEDS_FIXUP
#define RELOCATABLE_NEEDS_FIXUP \
#define RELOCATABLE_NEEDS_FIXUP \
  (target_flags & target_flags_explicit & MASK_RELOCATABLE)
  (target_flags & target_flags_explicit & MASK_RELOCATABLE)
 
 
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 
 
#define TARGET_POSIX_IO
#define TARGET_POSIX_IO
 
 
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
 
 
#ifdef TARGET_LIBC_PROVIDES_SSP
#ifdef TARGET_LIBC_PROVIDES_SSP
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2).  */
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2).  */
#define TARGET_THREAD_SSP_OFFSET        -0x7008
#define TARGET_THREAD_SSP_OFFSET        -0x7008
#endif
#endif
 
 
#define POWERPC_LINUX
#define POWERPC_LINUX
 
 
/* ppc linux has 128-bit long double support in glibc 2.4 and later.  */
/* ppc linux has 128-bit long double support in glibc 2.4 and later.  */
#ifdef TARGET_DEFAULT_LONG_DOUBLE_128
#ifdef TARGET_DEFAULT_LONG_DOUBLE_128
#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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