📄 osfrose.h
字号:
fprintf (FILE, "\tmovl 4(%%ebp),%%ecx\n"); \ fprintf (FILE, "\tpushl %%ecx\n"); \ fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \ lprefix, labelno); \ fprintf (FILE, "\tmovl _mcount_ptr@GOT(%%ebx),%%eax\n"); \ fprintf (FILE, "\tcall *(%%eax)\n"); \ fprintf (FILE, "\tpopl %%eax\n"); \ } \ \ else if (frame_pointer_needed) \ { \ fprintf (FILE, "\tmovl 4(%%ebp),%%ecx\n"); \ fprintf (FILE, "\tpushl %%ecx\n"); \ fprintf (FILE, "\tmovl $%sP%d,%%edx\n", lprefix, labelno); \ fprintf (FILE, "\tcall *_mcount_ptr\n"); \ fprintf (FILE, "\tpopl %%eax\n"); \ } \ \ else \ abort (); \ } \ } \while (0)/* A C function or functions which are needed in the library to support block profiling. When support goes into libc, undo the #if 0. */#if 0#undef BLOCK_PROFILING_CODE#define BLOCK_PROFILING_CODE#endif/* Prefix for internally generated assembler labels. If we aren't using underscores, we are using prefix `.'s to identify labels that should be ignored, as in `i386/gas.h' --karl@cs.umb.edu */#undef LPREFIX#define LPREFIX ((TARGET_UNDERSCORES) ? "L" : ".L")/* This is how to store into the string BUF the symbol_ref name of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. This is suitable for output with `assemble_name'. */#undef ASM_GENERATE_INTERNAL_LABEL#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ sprintf ((BUF), "*%s%s%d", (TARGET_UNDERSCORES) ? "" : ".", \ (PREFIX), (NUMBER))/* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */#undef ASM_OUTPUT_INTERNAL_LABEL#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ fprintf (FILE, "%s%s%d:\n", (TARGET_UNDERSCORES) ? "" : ".", \ PREFIX, NUM)/* The prefix to add to user-visible assembler symbols. *//* target_flags is not accessible by the preprocessor */#undef USER_LABEL_PREFIX#define USER_LABEL_PREFIX "_"/* This is how to output a reference to a user-level label named NAME. */#undef ASM_OUTPUT_LABELREF#define ASM_OUTPUT_LABELREF(FILE,NAME) \ fprintf (FILE, "%s%s", (TARGET_UNDERSCORES) ? "_" : "", NAME)/* This is how to output an element of a case-vector that is relative. This is only used for PIC code. See comments by the `casesi' insn in i386.md for an explanation of the expression this outputs. */#undef ASM_OUTPUT_ADDR_DIFF_ELT#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \ fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)/* Output a definition */#define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \do \{ \ fprintf ((FILE), "\t%s\t", SET_ASM_OP); \ assemble_name (FILE, LABEL1); \ fprintf (FILE, ","); \ assemble_name (FILE, LABEL2); \ fprintf (FILE, "\n"); \ } \while (0)/* A C expression to output text to align the location counter in the way that is desirable at a point in the code that is reached only by jumping. This macro need not be defined if you don't want any special alignment to be done at such a time. Most machine descriptions do not currently define the macro. */#undef LABEL_ALIGN_AFTER_BARRIER#define LABEL_ALIGN_AFTER_BARRIER(LABEL) \ ((!TARGET_LARGE_ALIGN && i386_align_jumps > 2) ? 2 : i386_align_jumps)/* A C expression to output text to align the location counter in the way that is desirable at the beginning of a loop. This macro need not be defined if you don't want any special alignment to be done at such a time. Most machine descriptions do not currently define the macro. */#undef LOOP_ALIGN#define LOOP_ALIGN(LABEL) (i386_align_loops)/* A C statement to output to the stdio stream STREAM an assembler command to advance the location counter to a multiple of 2 to the POWER bytes. POWER will be a C expression of type `int'. */#undef ASM_OUTPUT_ALIGN#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ fprintf (STREAM, "\t.align\t%d\n", \ (!TARGET_LARGE_ALIGN && (POWER) > 2) ? 2 : (POWER))/* A C expression that is 1 if the RTX X is a constant which is a valid address. On most machines, this can be defined as `CONSTANT_P (X)', but a few machines are more restrictive in which constant addresses are supported. `CONSTANT_P' accepts integer-values expressions whose values are not explicitly known, such as `symbol_ref', `label_ref', and `high' expressions and `const' arithmetic expressions, in addition to `const_int' and `const_double' expressions. */#define CONSTANT_ADDRESS_P_ORIG(X) \ (GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \ || GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \ || GET_CODE (X) == HIGH)#undef CONSTANT_ADDRESS_P#define CONSTANT_ADDRESS_P(X) \ ((CONSTANT_ADDRESS_P_ORIG (X)) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))/* Nonzero if the constant value X is a legitimate general operand. It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */#undef LEGITIMATE_CONSTANT_P#define LEGITIMATE_CONSTANT_P(X) \ (!HALF_PIC_P () \ || GET_CODE (X) == CONST_DOUBLE \ || GET_CODE (X) == CONST_INT \ || !HALF_PIC_ADDRESS_P (X))/* Sometimes certain combinations of command options do not make sense on a particular target machine. You can define a macro `OVERRIDE_OPTIONS' to take account of this. This macro, if defined, is executed once just after all the command options have been parsed. */#undef SUBTARGET_OVERRIDE_OPTIONS#define SUBTARGET_OVERRIDE_OPTIONS \{ \ /* \ if (TARGET_ELF && TARGET_HALF_PIC) \ { \ target_flags &= ~MASK_HALF_PIC; \ flag_pic = 1; \ } \ */ \ \ if (TARGET_ROSE && flag_pic) \ { \ target_flags |= MASK_HALF_PIC; \ flag_pic = 0; \ } \ \ if (TARGET_HALF_PIC) \ half_pic_init (); \}/* Define this macro if references to a symbol must be treated differently depending on something about the variable or function named by the symbol (such as what section it is in). The macro definition, if any, is executed immediately after the rtl for DECL has been created and stored in `DECL_RTL (DECL)'. The value of the rtl will be a `mem' whose address is a `symbol_ref'. The usual thing for this macro to do is to a flag in the `symbol_ref' (such as `SYMBOL_REF_FLAG') or to store a modified name string in the `symbol_ref' (if one bit is not enough information). The best way to modify the name string is by adding text to the beginning, with suitable punctuation to prevent any ambiguity. Allocate the new name in `saveable_obstack'. You will have to modify `ASM_OUTPUT_LABELREF' to remove and decode the added text and output the name accordingly. You can also check the information stored in the `symbol_ref' in the definition of `GO_IF_LEGITIMATE_ADDRESS' or `PRINT_OPERAND_ADDRESS'. */#undef ENCODE_SECTION_INFO#define ENCODE_SECTION_INFO(DECL) \do \ { \ if (HALF_PIC_P ()) \ HALF_PIC_ENCODE (DECL); \ \ else if (flag_pic) \ { \ rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \ ? TREE_CST_RTL (DECL) : DECL_RTL (DECL)); \ SYMBOL_REF_FLAG (XEXP (rtl, 0)) \ = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \ || ! TREE_PUBLIC (DECL)); \ } \ } \while (0)/* On most machines, read-only variables, constants, and jump tables are placed in the text section. If this is not the case on your machine, this macro should be defined to be the name of a function (either `data_section' or a function defined in `EXTRA_SECTIONS') that switches to the section to be used for read-only items. If these items should be placed in the text section, this macro should not be defined. */#if 0#undef READONLY_DATA_SECTION#define READONLY_DATA_SECTION() \do \ { \ if (TARGET_ELF) \ { \ if (in_section != in_rodata) \ { \ fprintf (asm_out_file, "\t.section \"rodata\"\n"); \ in_section = in_rodata; \ } \ } \ else \ text_section (); \ } \while (0)#endif/* A list of names for sections other than the standard two, which are `in_text' and `in_data'. You need not define this macro on a system with no other sections (that GCC needs to use). */#undef EXTRA_SECTIONS#define EXTRA_SECTIONS in_rodata, in_data1/* Given a decl node or constant node, choose the section to output it in and select that section. */#undef SELECT_RTX_SECTION#define SELECT_RTX_SECTION(MODE, RTX) \do \ { \ if (MODE == Pmode && HALF_PIC_P () && HALF_PIC_ADDRESS_P (RTX)) \ data_section (); \ else \ readonly_data_section (); \ } \while (0)#undef SELECT_SECTION#define SELECT_SECTION(DECL, RELOC) \{ \ if (RELOC && HALF_PIC_P ()) \ data_section (); \ \ else if (TREE_CODE (DECL) == STRING_CST) \ { \ if (flag_writable_strings) \ data_section (); \ else \ readonly_data_section (); \ } \ \ else if (TREE_CODE (DECL) != VAR_DECL) \ readonly_data_section (); \ \ else if (!TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \ || !DECL_INITIAL (DECL) \ || (DECL_INITIAL (DECL) != error_mark_node \ && !TREE_CONSTANT (DECL_INITIAL (DECL)))) \ data_section (); \ \ else \ readonly_data_section (); \}/* Define the strings used for the special svr4 .type and .size directives. These strings generally do not vary from one system running svr4 to another, but if a given system (e.g. m88k running svr) needs to use different pseudo-op names for these, they may be overridden in the file which includes this one. */#define TYPE_ASM_OP ".type"#define SIZE_ASM_OP ".size"#define SET_ASM_OP ".set"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -