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

📄 iris6.h

📁 GCC编译器源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Definitions of target machine for GNU compiler.  Iris version 6.   Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.This file is part of GNU CC.GNU CC 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.GNU CC 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 GNU CC; see the file COPYING.  If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330,Boston, MA 02111-1307, USA.  *//* Default to -mabi=n32 and -mips3.  */#define MIPS_ISA_DEFAULT 3#define MIPS_ABI_DEFAULT ABI_N32#define MULTILIB_DEFAULTS { "mabi=n32" }#ifndef TARGET_DEFAULT#define TARGET_DEFAULT MASK_ABICALLS|MASK_FLOAT64|MASK_64BIT#endif#include "mips/iris5.h"#include "mips/abi64.h"/* For Irix 6, -mabi=64 implies TARGET_LONG64.  *//* This is handled in override_options.  */#undef SUBTARGET_CC1_SPEC#define SUBTARGET_CC1_SPEC "%{static: -mno-abicalls}"/* We must pass -D_LONGLONG always, even when -ansi is used, because irix6   system header files require it.  This is OK, because gcc never warns   when long long is used in system header files.  Alternatively, we can   add support for the SGI builtin type __long_long.  */#undef CPP_PREDEFINES#define CPP_PREDEFINES \ "-Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -D_MIPSEB -DSYSTYPE_SVR4 \  -D_LONGLONG -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ \  -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi)"#undef SUBTARGET_CPP_SIZE_SPEC#define SUBTARGET_CPP_SIZE_SPEC "\%{mabi=32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \%{mabi=n32: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int} \%{mabi=64: -D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long\\ int} \%{!mabi*: -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int}"/* We must make -mips3 do what -mlong64 used to do.  *//* ??? If no mipsX option given, but a mabi=X option is, then should set   _MIPS_ISA based on the mabi=X option.  *//* ??? If no mabi=X option give, but a mipsX option is, then should set   _MIPS_SIM based on the mipsX option.  *//* ??? Same for _MIPS_SZINT.  *//* ??? Same for _MIPS_SZPTR.  *//* ??? Same for __SIZE_TYPE and __PTRDIFF_TYPE.  */#undef SUBTARGET_CPP_SPEC#define SUBTARGET_CPP_SPEC "\%{!ansi:-D__EXTENSIONS__ -D_SGI_SOURCE} \%{mfp32: -D_MIPS_FPSET=16}%{!mfp32: -D_MIPS_FPSET=32} \%{mips1: -D_MIPS_ISA=_MIPS_ISA_MIPS1} \%{mips2: -D_MIPS_ISA=_MIPS_ISA_MIPS2} \%{mips3: -D_MIPS_ISA=_MIPS_ISA_MIPS3} \%{mips4: -D_MIPS_ISA=_MIPS_ISA_MIPS4} \%{!mips*: -D_MIPS_ISA=_MIPS_ISA_MIPS3} \%{mabi=32: -D_MIPS_SIM=_MIPS_SIM_ABI32}	\%{mabi=n32: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \%{mabi=64: -D_ABI64=3 -D_MIPS_SIM=_ABI64} \%{!mabi*: -D_ABIN32=2 -D_MIPS_SIM=_ABIN32} \%{!mint64: -D_MIPS_SZINT=32}%{mint64: -D_MIPS_SZINT=64} \%{mabi=32: -D_MIPS_SZLONG=32} \%{mabi=n32: -D_MIPS_SZLONG=32} \%{mabi=64: -D_MIPS_SZLONG=64} \%{!mabi*: -D_MIPS_SZLONG=32} \%{mabi=32: -D_MIPS_SZPTR=32} \%{mabi=n32: -D_MIPS_SZPTR=32} \%{mabi=64: -D_MIPS_SZPTR=64} \%{!mabi*: -D_MIPS_SZPTR=32} \%{!mips1:%{!mips2: -D_COMPILER_VERSION=601}}		\%{!mips*: -U__mips -D__mips=3} \%{mabi=32: -U__mips64} \%{mabi=n32: -D__mips64} \%{mabi=64: -D__mips64} \%{!mabi*: -D__mips64}"/* Irix 6 uses DWARF-2.  */#define DWARF2_DEBUGGING_INFO#define MIPS_DEBUGGING_INFO#undef PREFERRED_DEBUGGING_TYPE#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG/* The size in bytes of a DWARF field indicating an offset or length   relative to a debug info section, specified to be 4 bytes in the DWARF-2   specification.  The SGI/MIPS ABI defines it to be the same as PTR_SIZE.  */#define DWARF_OFFSET_SIZE PTR_SIZE#undef MACHINE_TYPE#define MACHINE_TYPE "SGI running IRIX 6.x"/* The Irix 6.0.1 assembler doesn't like labels in the text section, so   just avoid emitting them.  */#define ASM_IDENTIFY_GCC#define ASM_IDENTIFY_LANGUAGE/* Irix 5 stuff that we don't need for Irix 6.  *//* ??? We do need this for the -mabi=32 switch though.  */#undef ASM_OUTPUT_UNDEF_FUNCTION#undef ASM_OUTPUT_EXTERNAL_LIBCALL#undef ASM_DECLARE_FUNCTION_SIZE/* Stuff we need for Irix 6 that isn't in Irix 5.  *//* The SGI assembler doesn't like labels before the .ent, so we must output   the .ent and function name here, which is the normal place for it.  */#undef ASM_DECLARE_FUNCTION_NAME#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)			\  do {									\    fputs ("\t.ent\t", STREAM);						\    assemble_name (STREAM, NAME);					\    fputs ("\n", STREAM);						\    assemble_name (STREAM, NAME);					\    fputs (":\n", STREAM);						\  } while (0)/* Likewise, the SGI assembler doesn't like labels after the .end, so we   must output the .end here.  */#define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL)			\  do {									\    fputs ("\t.end\t", STREAM);						\    assemble_name (STREAM, NAME);					\    fputs ("\n", STREAM);						\  } while (0)/* Tell function_prologue in mips.c that we have already output the .ent/.end   pseudo-ops.  */#define FUNCTION_NAME_ALREADY_DECLARED#undef SET_ASM_OP	/* Has no equivalent.  See ASM_OUTPUT_DEF below.  */#if 0/* This is *NOT* how to equate one symbol to another symbol.  The assembler   '=' syntax just equates a name to a constant expression.   See ASM_OUTPUT_WEAK_ALIAS.  */#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2)				\ do {	fprintf ((FILE), "\t");						\	assemble_name (FILE, LABEL1);					\	fprintf (FILE, " = ");						\	assemble_name (FILE, LABEL2);					\	fprintf (FILE, "\n");						\  } while (0)#endif/* Define the strings used for the special svr4 .type and .size directives.  */#define TYPE_ASM_OP	".type"#define SIZE_ASM_OP	".size"/* This is how we tell the assembler that a symbol is weak.  */#define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE)	\ do {						\  fputs ("\t.weakext\t", FILE);			\  assemble_name (FILE, NAME);			\  if (VALUE)					\    {						\      fputc (' ', FILE);			\      assemble_name (FILE, VALUE);		\    }						\  fputc ('\n', FILE);				\ } while (0)#define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,0)#define POPSECTION_ASM_OP	".popsection"#define DEBUG_INFO_SECTION	".debug_info,0x7000001e,0,0,1"#define DEBUG_LINE_SECTION	".debug_line,0x7000001e,0,0,1"#define SFNAMES_SECTION		".debug_sfnames,0x7000001e,0,0,1"#define SRCINFO_SECTION		".debug_srcinfo,0x7000001e,0,0,1"#define MACINFO_SECTION		".debug_macinfo,0x7000001e,0,0,1"#define PUBNAMES_SECTION	".debug_pubnames,0x7000001e,0,0,1"#define ARANGES_SECTION		".debug_aranges,0x7000001e,0,0,1"#define FRAME_SECTION		".debug_frame,0x7000001e,0x08000000,0,1"#define ABBREV_SECTION		".debug_abbrev,0x7000001e,0,0,1"/* ??? If no mabi=X option give, but a mipsX option is, then should depend   on the mipsX option.  */#undef SUBTARGET_ASM_SPEC#define SUBTARGET_ASM_SPEC "%{!mabi*:-n32}"/* Must pass -g0 to the assembler, otherwise it may overwrite our   debug info with its own debug info. *//* Must pass -show instead of -v.  *//* Must pass -G 0 to the assembler, otherwise we may get warnings about   GOT overflow.  *//* ??? We pass -w to disable all assembler warnings.  The `label should be   inside .ent/.end block' warning that we get for DWARF II debug info labels   is particularly annoying.  */#undef SUBTARGET_MIPS_AS_ASM_SPEC#define SUBTARGET_MIPS_AS_ASM_SPEC "%{v:-show} -G 0 -w"#undef SUBTARGET_ASM_DEBUGGING_SPEC#define SUBTARGET_ASM_DEBUGGING_SPEC "-g0"/* Stuff for constructors.  Start here.  *//* The assembler now accepts .section pseudo-ops, but it does not allow   one to change the section in the middle of a function, so we can't use   the INIT_SECTION_ASM_OP code in crtstuff.  But we can build up the ctor   and dtor lists this way, so we use -init and -fini to invoke the   do_global_* functions instead of running collect2.  */#define BSS_SECTION_ASM_OP	".section\t.bss"#define CONST_SECTION_ASM_OP_32	"\t.rdata"#define CONST_SECTION_ASM_OP_64	".section\t.rodata"/* The IRIX 6 assembler .section directive takes four additional args:   section type, flags, entry size, and alignment.  The alignment of the   .ctors and .dtors sections needs to be the same as the size of a pointer   so that the linker doesn't add padding between elements.  */#if defined (CRT_BEGIN) || defined (CRT_END)/* If we are included from crtstuff.c, these need to be plain strings.   _MIPS_SZPTR is defined in SUBTARGET_CPP_SPEC above.  */#if _MIPS_SZPTR == 64#define CTORS_SECTION_ASM_OP ".section\t.ctors,1,2,0,8"#define DTORS_SECTION_ASM_OP ".section\t.dtors,1,2,0,8"#else /* _MIPS_SZPTR != 64 */#define CTORS_SECTION_ASM_OP ".section\t.ctors,1,2,0,4"#define DTORS_SECTION_ASM_OP ".section\t.dtors,1,2,0,4"#endif /* _MIPS_SZPTR == 64 */#else /* ! (defined (CRT_BEGIN) || defined (CRT_END)) *//* If we are included from varasm.c, these need to depend on -mabi.  */#define CTORS_SECTION_ASM_OP \  (TARGET_LONG64 ? ".section\t.ctors,1,2,0,8" : ".section\t.ctors,1,2,0,4")#define DTORS_SECTION_ASM_OP \  (TARGET_LONG64 ? ".section\t.dtors,1,2,0,8" : ".section\t.dtors,1,2,0,4")#endif /* defined (CRT_BEGIN) || defined (CRT_END) *//* dwarf2out will handle padding this data properly.  We definitely don't   want it 8-byte aligned on n32.  */#define EH_FRAME_SECTION_ASM_OP ".section\t.eh_frame,1,2,0,1"/* A default list of other sections which we might be "in" at any given   time.  For targets that use additional sections (e.g. .tdesc) you   should override this definition in the target-specific file which   includes this file.  */#undef EXTRA_SECTIONS#define EXTRA_SECTIONS in_sdata, in_rdata, in_const, in_ctors, in_dtors/* A default list of extra section function definitions.  For targets   that use additional sections (e.g. .tdesc) you should override this   definition in the target-specific file which includes this file.  *//* ??? rdata_section is now same as svr4 const_section.  */#undef EXTRA_SECTION_FUNCTIONS#define EXTRA_SECTION_FUNCTIONS						\void									\sdata_section ()							\{									\

⌨️ 快捷键说明

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