📄 sysv4.h
字号:
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)"/* 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)} \%{mno-sdata: -msdata=none } \%{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} \%{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} \ }}}}"/* Any specific OS flags. */#define LINK_OS_SPEC "\%{mads : %(link_os_ads) ; \ myellowknife : %(link_os_yellowknife) ; \ mmvme : %(link_os_mvme) ; \ msim : %(link_os_sim) ; \ mwindiss : %(link_os_windiss) ; \ mcall-freebsd: %(link_os_freebsd) ; \ mcall-linux : %(link_os_linux) ; \ mcall-gnu : %(link_os_gnu) ; \ mcall-netbsd : %(link_os_netbsd) ; \ mcall-openbsd: %(link_os_openbsd) ; \ : %(link_os_default) }"#define LINK_OS_DEFAULT_SPEC ""/* Override rs6000.h definition. */#undef CPP_SPEC#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \%{mads : %(cpp_os_ads) ; \ myellowknife : %(cpp_os_yellowknife) ; \ mmvme : %(cpp_os_mvme) ; \ msim : %(cpp_os_sim) ; \ mwindiss : %(cpp_os_windiss) ; \ mcall-freebsd: %(cpp_os_freebsd) ; \ mcall-linux : %(cpp_os_linux) ; \ mcall-gnu : %(cpp_os_gnu) ; \ mcall-netbsd : %(cpp_os_netbsd) ; \ mcall-openbsd: %(cpp_os_openbsd) ; \ : %(cpp_os_default) }"#define CPP_OS_DEFAULT_SPEC ""/* Override svr4.h definition. */#undef STARTFILE_SPEC#define STARTFILE_SPEC "\%{mads : %(startfile_ads) ; \ myellowknife : %(startfile_yellowknife) ; \ mmvme : %(startfile_mvme) ; \ msim : %(startfile_sim) ; \ mwindiss : %(startfile_windiss) ; \ mcall-freebsd: %(startfile_freebsd) ; \ mcall-linux : %(startfile_linux) ; \ mcall-gnu : %(startfile_gnu) ; \ mcall-netbsd : %(startfile_netbsd) ; \ mcall-openbsd: %(startfile_openbsd) ; \ : %(startfile_default) }"#define STARTFILE_DEFAULT_SPEC ""/* Override svr4.h definition. */#undef LIB_SPEC#define LIB_SPEC "\%{mads : %(lib_ads) ; \ myellowknife : %(lib_yellowknife) ; \ mmvme : %(lib_mvme) ; \ msim : %(lib_sim) ; \ mwindiss : %(lib_windiss) ; \ mcall-freebsd: %(lib_freebsd) ; \ mcall-linux : %(lib_linux) ; \ mcall-gnu : %(lib_gnu) ; \ mcall-netbsd : %(lib_netbsd) ; \ mcall-openbsd: %(lib_openbsd) ; \ : %(lib_default) }"#define LIB_DEFAULT_SPEC ""/* Override svr4.h definition. */#undef ENDFILE_SPEC#define ENDFILE_SPEC "\%{mads : crtsavres.o%s %(endfile_ads) ; \ myellowknife : crtsavres.o%s %(endfile_yellowknife) ; \ mmvme : crtsavres.o%s %(endfile_mvme) ; \ msim : crtsavres.o%s %(endfile_sim) ; \ mwindiss : %(endfile_windiss) ; \ mcall-freebsd: crtsavres.o%s %(endfile_freebsd) ; \ mcall-linux : crtsavres.o%s %(endfile_linux) ; \ mcall-gnu : crtsavres.o%s %(endfile_gnu) ; \ mcall-netbsd : crtsavres.o%s %(endfile_netbsd) ; \ mcall-openbsd: crtsavres.o%s %(endfile_openbsd) ; \ : %(crtsavres_default) %(endfile_default) }"#define CRTSAVRES_DEFAULT_SPEC "crtsavres.o%s"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -