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

📄 sysv4.h

📁 linux下编程用 编译软件
💻 H
📖 第 1 页 / 共 3 页
字号:
#define	SDATA_SECTION_FUNCTION						\void									\sdata_section (void)							\{									\  if (in_section != in_sdata)						\    {									\      in_section = in_sdata;						\      fprintf (asm_out_file, "%s\n", SDATA_SECTION_ASM_OP);		\    }									\}#define	SDATA2_SECTION_FUNCTION						\void									\sdata2_section (void)							\{									\  if (in_section != in_sdata2)						\    {									\      in_section = in_sdata2;						\      fprintf (asm_out_file, "%s\n", SDATA2_SECTION_ASM_OP);		\    }									\}#define	SBSS_SECTION_FUNCTION						\void									\sbss_section (void)							\{									\  if (in_section != in_sbss)						\    {									\      in_section = in_sbss;						\      fprintf (asm_out_file, "%s\n", SBSS_SECTION_ASM_OP);		\    }									\}#define	INIT_SECTION_FUNCTION						\void									\init_section (void)							\{									\  if (in_section != in_init)						\    {									\      in_section = in_init;						\      fprintf (asm_out_file, "%s\n", INIT_SECTION_ASM_OP);		\    }									\}#define	FINI_SECTION_FUNCTION						\void									\fini_section (void)							\{									\  if (in_section != in_fini)						\    {									\      in_section = in_fini;						\      fprintf (asm_out_file, "%s\n", FINI_SECTION_ASM_OP);		\    }									\}/* Override default elf definitions.  */#undef	TARGET_ASM_SELECT_RTX_SECTION#define	TARGET_ASM_SELECT_RTX_SECTION rs6000_elf_select_rtx_section#undef	TARGET_ASM_SELECT_SECTION#define	TARGET_ASM_SELECT_SECTION  rs6000_elf_select_section#define TARGET_ASM_UNIQUE_SECTION  rs6000_elf_unique_section/* Return nonzero if this entry is to be written into the constant pool   in a special way.  We do so if this is a SYMBOL_REF, LABEL_REF or a CONST   containing one of them.  If -mfp-in-toc (the default), we also do   this for floating-point constants.  We actually can only do this   if the FP formats of the target and host machines are the same, but   we can't check that since not every file that uses   GO_IF_LEGITIMATE_ADDRESS_P includes real.h.   Unlike AIX, we don't key off of -mminimal-toc, but instead do not   allow floating point constants in the TOC if -mrelocatable.  */#undef	ASM_OUTPUT_SPECIAL_POOL_ENTRY_P#define	ASM_OUTPUT_SPECIAL_POOL_ENTRY_P(X, MODE)			\  (TARGET_TOC								\   && (GET_CODE (X) == SYMBOL_REF					\       || (GET_CODE (X) == CONST && GET_CODE (XEXP (X, 0)) == PLUS	\	   && GET_CODE (XEXP (XEXP (X, 0), 0)) == SYMBOL_REF)		\       || GET_CODE (X) == LABEL_REF					\       || (GET_CODE (X) == CONST_INT 					\	   && GET_MODE_BITSIZE (MODE) <= GET_MODE_BITSIZE (Pmode))	\       || (!TARGET_NO_FP_IN_TOC						\	   && !TARGET_RELOCATABLE					\	   && GET_CODE (X) == CONST_DOUBLE				\	   && GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT		\	   && BITS_PER_WORD == HOST_BITS_PER_INT)))/* These macros generate the special .type and .size directives which   are used to set the corresponding fields of the linker symbol table   entries in an ELF object file under SVR4.  These macros also output   the starting labels for the relevant functions/objects.  *//* Write the extra assembler code needed to declare a function properly.   Some svr4 assemblers need to also have something extra said about the   function's return value.  We allow for that here.  */extern int rs6000_pic_labelno;/* Override elfos.h definition.  */#undef	ASM_DECLARE_FUNCTION_NAME#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)			\  rs6000_elf_declare_function_name ((FILE), (NAME), (DECL))/* The USER_LABEL_PREFIX stuff is affected by the -fleading-underscore   flag.  The LOCAL_LABEL_PREFIX variable is used by dbxelf.h.  */#define	LOCAL_LABEL_PREFIX "."#define	USER_LABEL_PREFIX ""/* svr4.h overrides (*targetm.asm_out.internal_label).  */#define	ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX)	\  asm_fprintf (FILE, "%L%s", PREFIX)/* Globalizing directive for a label.  */#define GLOBAL_ASM_OP "\t.globl "/* This says how to output assembler code to declare an   uninitialized internal linkage data object.  Under SVR4,   the linker seems to want the alignment of data objects   to depend on their types.  We do exactly that here.  */#define	LOCAL_ASM_OP	"\t.local\t"#define	LCOMM_ASM_OP	"\t.lcomm\t"/* Override elfos.h definition.  */#undef	ASM_OUTPUT_ALIGNED_LOCAL#define	ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN)		\do {									\  if (rs6000_sdata != SDATA_NONE && (SIZE) > 0				\      && (SIZE) <= g_switch_value)					\    {									\      sbss_section ();							\      ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT));	\      ASM_OUTPUT_LABEL (FILE, NAME);					\      ASM_OUTPUT_SKIP (FILE, SIZE);					\      if (!flag_inhibit_size_directive && (SIZE) > 0)			\	ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, SIZE);			\    }									\  else									\    {									\      fprintf (FILE, "%s", LCOMM_ASM_OP);				\      assemble_name ((FILE), (NAME));					\      fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",		\	       (SIZE), (ALIGN) / BITS_PER_UNIT);			\    }									\  ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object");			\} while (0)/* Describe how to emit uninitialized external linkage items.  */#define	ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN)		\do {									\  ASM_OUTPUT_ALIGNED_LOCAL (FILE, NAME, SIZE, ALIGN);			\} while (0)#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN/* To support -falign-* switches we need to use .p2align so   that alignment directives in code sections will be padded   with no-op instructions, rather than zeroes.  */#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP)			\  if ((LOG) != 0)							\    {									\      if ((MAX_SKIP) == 0)						\	fprintf ((FILE), "\t.p2align %d\n", (LOG));			\      else								\	fprintf ((FILE), "\t.p2align %d,,%d\n",	(LOG), (MAX_SKIP));	\    }#endif/* This is how to output code to push a register on the stack.   It need not be very fast code.   On the rs6000, we must keep the backchain up to date.  In order   to simplify things, always allocate 16 bytes for a push (System V   wants to keep stack aligned to a 16 byte boundary).  */#define	ASM_OUTPUT_REG_PUSH(FILE, REGNO)				\do {									\  if (DEFAULT_ABI == ABI_V4)						\    asm_fprintf (FILE,							\		 "\t{stu|stwu} %s,-16(%s)\n\t{st|stw} %s,12(%s)\n",	\		 reg_names[1], reg_names[1], reg_names[REGNO],		\		 reg_names[1]);						\} while (0)/* This is how to output an insn to pop a register from the stack.   It need not be very fast code.  */#define	ASM_OUTPUT_REG_POP(FILE, REGNO)					\do {									\  if (DEFAULT_ABI == ABI_V4)						\    asm_fprintf (FILE,							\		 "\t{l|lwz} %s,12(%s)\n\t{ai|addic} %s,%s,16\n",	\		 reg_names[REGNO], reg_names[1], reg_names[1],		\		 reg_names[1]);						\} while (0)/* Switch  Recognition by gcc.c.  Add -G xx support.  *//* Override svr4.h definition.  */#undef	SWITCH_TAKES_ARG#define	SWITCH_TAKES_ARG(CHAR)						\  ((CHAR) == 'D' || (CHAR) == 'U' || (CHAR) == 'o'			\   || (CHAR) == 'e' || (CHAR) == 'T' || (CHAR) == 'u'			\   || (CHAR) == 'I' || (CHAR) == 'm' || (CHAR) == 'x'			\   || (CHAR) == 'L' || (CHAR) == 'A' || (CHAR) == 'V'			\   || (CHAR) == 'B' || (CHAR) == 'b' || (CHAR) == 'G')extern int fixuplabelno;/* Handle constructors specially for -mrelocatable.  */#define TARGET_ASM_CONSTRUCTOR  rs6000_elf_asm_out_constructor#define TARGET_ASM_DESTRUCTOR   rs6000_elf_asm_out_destructor/* This is the end of what might become sysv4.h.  *//* Use DWARF 2 debugging information by default.  */#undef  PREFERRED_DEBUGGING_TYPE#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG/* Historically we have also supported stabs debugging.  */#define DBX_DEBUGGING_INFO 1#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO)/* Map register numbers held in the call frame info that gcc has   collected using DWARF_FRAME_REGNUM to those that should be output in   .debug_frame and .eh_frame.  We continue to use gcc hard reg numbers   for .eh_frame, but use the numbers mandated by the various ABIs for   .debug_frame.  rs6000_emit_prologue has translated any combination of   CR2, CR3, CR4 saves to a save of CR2.  The actual code emitted saves   the whole of CR, so we map CR2_REGNO to the DWARF reg for CR.  */#define DWARF2_FRAME_REG_OUT(REGNO, FOR_EH)	\  ((FOR_EH) ? (REGNO)				\   : (REGNO) == CR2_REGNO ? 64			\   : DBX_REGISTER_NUMBER (REGNO))#define TARGET_ENCODE_SECTION_INFO  rs6000_elf_encode_section_info#define TARGET_IN_SMALL_DATA_P  rs6000_elf_in_small_data_p#define TARGET_SECTION_TYPE_FLAGS  rs6000_elf_section_type_flags/* The ELF version doesn't encode [DS] or whatever at the end of symbols.  */#define	RS6000_OUTPUT_BASENAME(FILE, NAME)	\    assemble_name (FILE, NAME)/* We have to output the stabs for the function name *first*, before   outputting its label.  */#define	DBX_FUNCTION_FIRST/* This is the end of what might become sysv4dbx.h.  */#ifndef	TARGET_VERSION#define	TARGET_VERSION fprintf (stderr, " (PowerPC System V.4)");#endif#define TARGET_OS_SYSV_CPP_BUILTINS()		\  do						\    {						\      if (flag_pic == 1)			\	{					\	  builtin_define ("__pic__=1");		\	  builtin_define ("__PIC__=1");		\	}					\      else if (flag_pic == 2)			\	{					\	  builtin_define ("__pic__=2");		\	  builtin_define ("__PIC__=2");		\	}					\      if (target_flags_explicit			\	  & MASK_RELOCATABLE)			\	builtin_define ("_RELOCATABLE");	\    }						\  while (0)#ifndef	TARGET_OS_CPP_BUILTINS#define TARGET_OS_CPP_BUILTINS()		\  do						\    {						\      builtin_define_std ("PPC");		\      builtin_define_std ("unix");		\      builtin_define ("__svr4__");		\      builtin_assert ("system=unix");		\      builtin_assert ("system=svr4");		\      builtin_assert ("cpu=powerpc");		\      builtin_assert ("machine=powerpc");	\      TARGET_OS_SYSV_CPP_BUILTINS ();		\    }						\  while (0)#endif/* Pass various options to the assembler.  *//* Override svr4.h definition.  */#undef	ASM_SPEC#define	ASM_SPEC "%(asm_cpu) \%{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} \%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} \%{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} \%{memb|msdata|msdata=eabi: -memb} \%{mlittle|mlittle-endian:-mlittle; \  mbig|mbig-endian      :-mbig;    \  mcall-aixdesc |		   \  mcall-freebsd |		   \  mcall-netbsd  |		   \  mcall-openbsd |		   \  mcall-linux   |		   \  mcall-gnu             :-mbig;    \  mcall-i960-old        :-mlittle}"#define	CC1_ENDIAN_BIG_SPEC ""#define	CC1_ENDIAN_LITTLE_SPEC "\%{!mstrict-align: %{!mno-strict-align: \    %{!mcall-i960-old: \	-mstrict-align \    } \}}"#define	CC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big)"#ifndef CC1_SECURE_PLT_DEFAULT_SPEC#define CC1_SECURE_PLT_DEFAULT_SPEC ""#endif/* Pass -G xxx to the compiler and set correct endian mode.  */#define	CC1_SPEC "%{G*} \%{mlittle|mlittle-endian: %(cc1_endian_little);           \  mbig   |mbig-endian   : %(cc1_endian_big);              \  mcall-aixdesc |					  \  mcall-freebsd |					  \  mcall-netbsd  |					  \  mcall-openbsd |					  \  mcall-linux   |					  \  mcall-gnu             : -mbig %(cc1_endian_big);        \  mcall-i960-old        : -mlittle %(cc1_endian_little);  \                        : %(cc1_endian_default)}          \%{meabi: %{!mcall-*: -mcall-sysv }} \%{!meabi: %{!mno-eabi: \    %{mrelocatable: -meabi } \    %{mcall-freebsd: -mno-eabi } \    %{mcall-i960-old: -meabi } \    %{mcall-linux: -mno-eabi } \    %{mcall-gnu: -mno-eabi } \    %{mcall-netbsd: -mno-eabi } \    %{mcall-openbsd: -mno-eabi }}} \%{msdata: -msdata=default} \%{mno-sdata: -msdata=none} \%{!mbss-plt: %{!msecure-plt: %(cc1_secure_plt_default)}} \%{profile: -p}"/* Don't put -Y P,<path> for cross compilers.  */#ifndef CROSS_COMPILE#define LINK_PATH_SPEC "\%{!R*:%{L*:-R %*}} \%{!nostdlib: %{!YP,*: \    %{compat-bsd: \	%{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \	%{!p:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}} \	%{!R*: %{!L*: -R /usr/ucblib}} \    %{!compat-bsd: \	%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \	%{!p:-Y P,/usr/ccs/lib:/usr/lib}}}}"#else#define LINK_PATH_SPEC ""#endif/* Default starting address if specified.  */#define LINK_START_SPEC "\%{mads         : %(link_start_ads)         ; \  myellowknife : %(link_start_yellowknife) ; \  mmvme        : %(link_start_mvme)        ; \  msim         : %(link_start_sim)         ; \  mwindiss     : %(link_start_windiss)     ; \  mcall-freebsd: %(link_start_freebsd)     ; \  mcall-linux  : %(link_start_linux)       ; \  mcall-gnu    : %(link_start_gnu)         ; \  mcall-netbsd : %(link_start_netbsd)      ; \  mcall-openbsd: %(link_start_openbsd)     ; \               : %(link_start_default)     }"#define LINK_START_DEFAULT_SPEC ""/* Override svr4.h definition.  */#undef	LINK_SPEC#define	LINK_SPEC "\%{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} \%{YP,*} %{R*} \%{Qy:} %{!Qn:-Qy} \%(link_shlib) \%{!Wl,-T*: %{!T*: %(link_start) }} \%(link_target) \%(link_os)"/* For now, turn off shared libraries by default.  */#ifndef SHARED_LIB_SUPPORT#define NO_SHARED_LIB_SUPPORT#endif#ifndef NO_SHARED_LIB_SUPPORT/* Shared libraries are default.  */#define LINK_SHLIB_SPEC "\%{!static: %(link_path) %{!R*:%{L*:-R %*}}} \%{mshlib: } \%{static:-dn -Bstatic} \%{shared:-G -dy -z text} \%{symbolic:-Bsymbolic -G -dy -z text}"#else/* Shared libraries are not default.  */#define LINK_SHLIB_SPEC "\%{mshlib: %(link_path) } \%{!mshlib: %{!shared: %{!symbolic: -dn -Bstatic}}} \%{static: } \%{shared:-G -dy -z text %(link_path) } \%{symbolic:-Bsymbolic -G -dy -z text %(link_path) }"#endif/* Override the default target of the linker.  */#define	LINK_TARGET_SPEC "\%{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } \%{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \    %{mcall-i960-old: --oformat elf32-powerpcle} \  }}}}"

⌨️ 快捷键说明

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