⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux64.h

📁 这是leon3处理器的交叉编译链
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Definitions for 64-bit SPARC running Linux-based GNU systems with ELF.   Copyright 1996, 1997, 1998, 2000, 2002, 2003, 2004   Free Software Foundation, Inc.   Contributed by David S. Miller (davem@caip.rutgers.edu)This file is part of GCC.GCC is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GCC is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GCC; see the file COPYING.  If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330,Boston, MA 02111-1307, USA.  */#define TARGET_OS_CPP_BUILTINS()		\  do						\    {						\	builtin_define_std ("unix");		\	builtin_define_std ("linux");		\	builtin_define ("_LONGLONG");		\	builtin_define ("__gnu_linux__");	\	builtin_assert ("system=linux");	\	builtin_assert ("system=unix");		\	builtin_assert ("system=posix");	\    }						\  while (0)/* Don't assume anything about the header files.  */#define NO_IMPLICIT_EXTERN_C#undef MD_EXEC_PREFIX#undef MD_STARTFILE_PREFIX#if TARGET_CPU_DEFAULT == TARGET_CPU_v9 \    || TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc \    || TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3/* A 64 bit v9 compiler with stack-bias,   in a Medium/Low code model environment.  */#undef TARGET_DEFAULT#define TARGET_DEFAULT \  (MASK_V9 + MASK_PTR64 + MASK_64BIT /* + MASK_HARD_QUAD */ \   + MASK_STACK_BIAS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)#endif#undef ASM_CPU_DEFAULT_SPEC#define ASM_CPU_DEFAULT_SPEC "-Av9a"#ifdef SPARC_BI_ARCH#undef CPP_ARCH32_SPEC#define CPP_ARCH32_SPEC "%{mlong-double-128:-D__LONG_DOUBLE_128__}"#endif/* Provide a STARTFILE_SPEC appropriate for GNU/Linux.  Here we add   the GNU/Linux magical crtbegin.o file (see crtstuff.c) which   provides part of the support for getting C++ file-scope static   object constructed before entering `main'.  */   #undef  STARTFILE_SPEC#ifdef HAVE_LD_PIE#define STARTFILE_SPEC \  "%{!shared:%{pg|p:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}\   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbeginS.o%s}"#else#define STARTFILE_SPEC \  "%{!shared:%{pg|p:gcrt1.o%s;:crt1.o%s}}\   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbeginS.o%s}"#endif/* Provide a ENDFILE_SPEC appropriate for GNU/Linux.  Here we tack on   the GNU/Linux magical crtend.o file (see crtstuff.c) which   provides part of the support for getting C++ file-scope static   object constructed before entering `main', followed by a normal   GNU/Linux "finalizer" file, `crtn.o'.  */#undef  ENDFILE_SPEC#define ENDFILE_SPEC \  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\   %{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"/* The GNU C++ standard library requires that these macros be defined.  */#undef CPLUSPLUS_CPP_SPEC#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"#undef TARGET_VERSION#define TARGET_VERSION fprintf (stderr, " (sparc64 GNU/Linux with ELF)");/* The default code model.  */#undef SPARC_DEFAULT_CMODEL#define SPARC_DEFAULT_CMODEL CM_MEDLOW#undef SUBTARGET_SWITCHES#define SUBTARGET_SWITCHES						    \{"long-double-64", -MASK_LONG_DOUBLE_128, N_("Use 64 bit long doubles") },  \{"long-double-128", MASK_LONG_DOUBLE_128, N_("Use 128 bit long doubles") },#undef WCHAR_TYPE#define WCHAR_TYPE "int"#undef WCHAR_TYPE_SIZE#define WCHAR_TYPE_SIZE 32/* Define for support of TFmode long double.   SPARC ABI says that long double is 4 words.  */#undef LONG_DOUBLE_TYPE_SIZE#define LONG_DOUBLE_TYPE_SIZE (TARGET_LONG_DOUBLE_128 ? 128 : 64)/* Constant which presents upper bound of the above value.  */#undef MAX_LONG_DOUBLE_TYPE_SIZE#define MAX_LONG_DOUBLE_TYPE_SIZE 128/* Define this to set long double type size to use in libgcc2.c, which can   not depend on target_flags.  */#if defined(__arch64__) || defined(__LONG_DOUBLE_128__)#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 128#else#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64#endif#undef CPP_SUBTARGET_SPEC#define CPP_SUBTARGET_SPEC "\%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \%{posix:-D_POSIX_SOURCE} \%{pthread:-D_REENTRANT} \"#undef LIB_SPEC#define LIB_SPEC \  "%{pthread:-lpthread} \   %{shared:-lc} \   %{!shared: %{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"/* Provide a LINK_SPEC appropriate for GNU/Linux.  Here we provide support   for the special GCC options -static and -shared, which allow us to   link things in one of these three modes by applying the appropriate   combinations of options at link-time. We like to support here for   as many of the other GNU linker options as possible. But I don't   have the time to search for those flags. I am sure how to add   support for -soname shared_object_name. H.J.   I took out %{v:%{!V:-V}}. It is too much :-(. They can use   -Wl,-V.   When the -shared link option is used a final link is not being   done.  *//* If ELF is the default format, we should not use /lib/elf.  */#ifdef SPARC_BI_ARCH#undef SUBTARGET_EXTRA_SPECS#define SUBTARGET_EXTRA_SPECS \  { "link_arch32",       LINK_ARCH32_SPEC },              \  { "link_arch64",       LINK_ARCH64_SPEC },              \  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },	  \  { "link_arch",	 LINK_ARCH_SPEC },    #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \  %{!shared: \    %{!ibcs: \      %{!static: \        %{rdynamic:-export-dynamic} \        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \        %{static:-static}}} \"#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \  %{!shared: \    %{!ibcs: \      %{!static: \        %{rdynamic:-export-dynamic} \        %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \        %{static:-static}}} \"#define LINK_ARCH_SPEC "\%{m32:%(link_arch32)} \%{m64:%(link_arch64)} \%{!m32:%{!m64:%(link_arch_default)}} \"#define LINK_ARCH_DEFAULT_SPEC \(DEFAULT_ARCH32_P ? LINK_ARCH32_SPEC : LINK_ARCH64_SPEC)#undef  LINK_SPEC#define LINK_SPEC "\%(link_arch) \%{mlittle-endian:-EL} \%{!mno-relax:%{!r:-relax}} \"#undef	CC1_SPEC#if DEFAULT_ARCH32_P#define CC1_SPEC "\%{sun4:} %{target:} \%{mcypress:-mcpu=cypress} \%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \%{m32:%{m64:%emay not use both -m32 and -m64}} \%{m64:-mptr64 -mstack-bias -mlong-double-128 \  %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=ultrasparc}}}}}}} \  %{!mno-vis:%{!mcpu=v9:-mvis}}} \"#else#define CC1_SPEC "\%{sun4:} %{target:} \%{mcypress:-mcpu=cypress} \%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \%{m32:%{m64:%emay not use both -m32 and -m64}} \%{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \  %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=cypress}}}}}}}} \%{!m32:%{!mcpu*:-mcpu=ultrasparc}} \%{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \"#endif/* Support for a compile-time default CPU, et cetera.  The rules are:   --with-cpu is ignored if -mcpu is specified.   --with-tune is ignored if -mtune is specified.   --with-float is ignored if -mhard-float, -msoft-float, -mfpu, or -mno-fpu     are specified.   In the SPARC_BI_ARCH compiler we cannot pass %{!mcpu=*:-mcpu=%(VALUE)}   here, otherwise say -mcpu=v7 would be passed even when -m64.   CC1_SPEC above takes care of this instead.  */#undef OPTION_DEFAULT_SPECS#if DEFAULT_ARCH32_P#define OPTION_DEFAULT_SPECS \  {"cpu", "%{!m64:%{!mcpu=*:-mcpu=%(VALUE)}}" }, \  {"tune", "%{!mtune=*:-mtune=%(VALUE)}" }, \  {"float", "%{!msoft-float:%{!mhard-float:%{!fpu:%{!no-fpu:-m%(VALUE)-float}}}}" }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -