output.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /* Declarations for insn-output.c and other code to write to asm_out_file.
  2. These functions are defined in final.c, and varasm.c.
  3. Copyright (C) 1987-2019 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_OUTPUT_H
  17. #define GCC_OUTPUT_H
  18. /* Initialize data in final at the beginning of a compilation. */
  19. extern void init_final (const char *);
  20. /* Enable APP processing of subsequent output.
  21. Used before the output from an `asm' statement. */
  22. extern void app_enable (void);
  23. /* Disable APP processing of subsequent output.
  24. Called from varasm.c before most kinds of output. */
  25. extern void app_disable (void);
  26. /* Return the number of slots filled in the current
  27. delayed branch sequence (we don't count the insn needing the
  28. delay slot). Zero if not in a delayed branch sequence. */
  29. extern int dbr_sequence_length (void);
  30. /* Indicate that branch shortening hasn't yet been done. */
  31. extern void init_insn_lengths (void);
  32. /* Obtain the current length of an insn. If branch shortening has been done,
  33. get its actual length. Otherwise, get its maximum length. */
  34. extern int get_attr_length (rtx_insn *);
  35. /* Obtain the current length of an insn. If branch shortening has been done,
  36. get its actual length. Otherwise, get its minimum length. */
  37. extern int get_attr_min_length (rtx_insn *);
  38. /* Make a pass over all insns and compute their actual lengths by shortening
  39. any branches of variable length if possible. */
  40. extern void shorten_branches (rtx_insn *);
  41. const char *get_some_local_dynamic_name ();
  42. /* Output assembler code for the start of a function,
  43. and initialize some of the variables in this file
  44. for the new function. The label for the function and associated
  45. assembler pseudo-ops have already been output in
  46. `assemble_start_function'. */
  47. extern void final_start_function (rtx_insn *, FILE *, int);
  48. /* Output assembler code for the end of a function.
  49. For clarity, args are same as those of `final_start_function'
  50. even though not all of them are needed. */
  51. extern void final_end_function (void);
  52. /* Output assembler code for some insns: all or part of a function. */
  53. extern void final (rtx_insn *, FILE *, int);
  54. /* The final scan for one insn, INSN. Args are same as in `final', except
  55. that INSN is the insn being scanned. Value returned is the next insn to
  56. be scanned. */
  57. extern rtx_insn *final_scan_insn (rtx_insn *, FILE *, int, int, int *);
  58. /* Replace a SUBREG with a REG or a MEM, based on the thing it is a
  59. subreg of. */
  60. extern rtx alter_subreg (rtx *, bool);
  61. /* Print an operand using machine-dependent assembler syntax. */
  62. extern void output_operand (rtx, int);
  63. /* Report inconsistency between the assembler template and the operands.
  64. In an `asm', it's the user's fault; otherwise, the compiler's fault. */
  65. extern void output_operand_lossage (const char *, ...) ATTRIBUTE_PRINTF_1;
  66. /* Output a string of assembler code, substituting insn operands.
  67. Defined in final.c. */
  68. extern void output_asm_insn (const char *, rtx *);
  69. /* Compute a worst-case reference address of a branch so that it
  70. can be safely used in the presence of aligned labels.
  71. Defined in final.c. */
  72. extern int insn_current_reference_address (rtx_insn *);
  73. /* Find the alignment associated with a CODE_LABEL.
  74. Defined in final.c. */
  75. extern align_flags label_to_alignment (rtx);
  76. /* Output a LABEL_REF, or a bare CODE_LABEL, as an assembler symbol. */
  77. extern void output_asm_label (rtx);
  78. /* Marks SYMBOL_REFs in x as referenced through use of assemble_external. */
  79. extern void mark_symbol_refs_as_used (rtx);
  80. /* Print a memory reference operand for address X with access mode MODE
  81. using machine-dependent assembler syntax. */
  82. extern void output_address (machine_mode, rtx);
  83. /* Print an integer constant expression in assembler syntax.
  84. Addition and subtraction are the only arithmetic
  85. that may appear in these expressions. */
  86. extern void output_addr_const (FILE *, rtx);
  87. /* Output a string of assembler code, substituting numbers, strings
  88. and fixed syntactic prefixes. */
  89. #if GCC_VERSION >= 3004
  90. #define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
  91. #else
  92. #define ATTRIBUTE_ASM_FPRINTF(m, n) ATTRIBUTE_NONNULL(m)
  93. #endif
  94. extern void fprint_whex (FILE *, unsigned HOST_WIDE_INT);
  95. extern void fprint_ul (FILE *, unsigned long);
  96. extern int sprint_ul (char *, unsigned long);
  97. extern void asm_fprintf (FILE *file, const char *p, ...)
  98. ATTRIBUTE_ASM_FPRINTF(2, 3);
  99. /* Return nonzero if this function has no function calls. */
  100. extern int leaf_function_p (void);
  101. /* Return 1 if branch is a forward branch.
  102. Uses insn_shuid array, so it works only in the final pass. May be used by
  103. output templates to add branch prediction hints, for example. */
  104. extern int final_forward_branch_p (rtx_insn *);
  105. /* Return 1 if this function uses only the registers that can be
  106. safely renumbered. */
  107. extern int only_leaf_regs_used (void);
  108. /* Scan IN_RTX and its subexpressions, and renumber all regs into those
  109. available in leaf functions. */
  110. extern void leaf_renumber_regs_insn (rtx);
  111. /* Locate the proper template for the given insn-code. */
  112. extern const char *get_insn_template (int, rtx_insn *);
  113. /* Functions in varasm.c. */
  114. /* Emit any pending weak declarations. */
  115. extern void weak_finish (void);
  116. /* Decode an `asm' spec for a declaration as a register name.
  117. Return the register number, or -1 if nothing specified,
  118. or -2 if the ASMSPEC is not `cc' or `memory' and is not recognized,
  119. or -3 if ASMSPEC is `cc' and is not recognized,
  120. or -4 if ASMSPEC is `memory' and is not recognized.
  121. Accept an exact spelling or a decimal number.
  122. Prefixes such as % are optional. */
  123. extern int decode_reg_name (const char *);
  124. /* Similar to decode_reg_name, but takes an extra parameter that is a
  125. pointer to the number of (internal) registers described by the
  126. external name. */
  127. extern int decode_reg_name_and_count (const char *, int *);
  128. extern void do_assemble_alias (tree, tree);
  129. extern void default_assemble_visibility (tree, int);
  130. /* Output a string of literal assembler code
  131. for an `asm' keyword used between functions. */
  132. extern void assemble_asm (tree);
  133. /* Get the function's name from a decl, as described by its RTL. */
  134. extern const char *get_fnname_from_decl (tree);
  135. /* Output assembler code for the constant pool of a function and associated
  136. with defining the name of the function. DECL describes the function.
  137. NAME is the function's name. For the constant pool, we use the current
  138. constant pool data. */
  139. extern void assemble_start_function (tree, const char *);
  140. /* Output assembler code associated with defining the size of the
  141. function. DECL describes the function. NAME is the function's name. */
  142. extern void assemble_end_function (tree, const char *);
  143. /* Assemble everything that is needed for a variable or function declaration.
  144. Not used for automatic variables, and not used for function definitions.
  145. Should not be called for variables of incomplete structure type.
  146. TOP_LEVEL is nonzero if this variable has file scope.
  147. AT_END is nonzero if this is the special handling, at end of compilation,
  148. to define things that have had only tentative definitions.
  149. DONT_OUTPUT_DATA if nonzero means don't actually output the
  150. initial value (that will be done by the caller). */
  151. extern void assemble_variable (tree, int, int, int);
  152. /* Put the vtable verification constructor initialization function
  153. into the preinit array. */
  154. extern void assemble_vtv_preinit_initializer (tree);
  155. /* Assemble everything that is needed for a variable declaration that has
  156. no definition in the current translation unit. */
  157. extern void assemble_undefined_decl (tree);
  158. /* Compute the alignment of variable specified by DECL.
  159. DONT_OUTPUT_DATA is from assemble_variable. */
  160. extern void align_variable (tree decl, bool dont_output_data);
  161. /* Queue for outputting something to declare an external symbol to the
  162. assembler. (Most assemblers don't need this, so we normally output
  163. nothing.) Do nothing if DECL is not external. */
  164. extern void assemble_external (tree);
  165. /* Assemble code to leave SIZE bytes of zeros. */
  166. extern void assemble_zeros (unsigned HOST_WIDE_INT);
  167. /* Assemble an alignment pseudo op for an ALIGN-bit boundary. */
  168. extern void assemble_align (unsigned int);
  169. /* Assemble a string constant with the specified C string as contents. */
  170. extern void assemble_string (const char *, int);
  171. /* Similar, for calling a library function FUN. */
  172. extern void assemble_external_libcall (rtx);
  173. /* Assemble a label named NAME. */
  174. extern void assemble_label (FILE *, const char *);
  175. /* Output to FILE (an assembly file) a reference to NAME. If NAME
  176. starts with a *, the rest of NAME is output verbatim. Otherwise
  177. NAME is transformed in a target-specific way (usually by the
  178. addition of an underscore). */
  179. extern void assemble_name_raw (FILE *, const char *);
  180. /* Return NAME that should actually be emitted, looking through
  181. transparent aliases. If NAME refers to an entity that is also
  182. represented as a tree (like a function or variable), mark the entity
  183. as referenced. */
  184. extern const char *assemble_name_resolve (const char *);
  185. /* Like assemble_name_raw, but should be used when NAME might refer to
  186. an entity that is also represented as a tree (like a function or
  187. variable). If NAME does refer to such an entity, that entity will
  188. be marked as referenced. */
  189. extern void assemble_name (FILE *, const char *);
  190. /* Return the assembler directive for creating a given kind of integer
  191. object. SIZE is the number of bytes in the object and ALIGNED_P
  192. indicates whether it is known to be aligned. Return NULL if the
  193. assembly dialect has no such directive.
  194. The returned string should be printed at the start of a new line and
  195. be followed immediately by the object's initial value. */
  196. extern const char *integer_asm_op (int, int);
  197. /* Use directive OP to assemble an integer object X. Print OP at the
  198. start of the line, followed immediately by the value of X. */
  199. extern void assemble_integer_with_op (const char *, rtx);
  200. /* The default implementation of the asm_out.integer target hook. */
  201. extern bool default_assemble_integer (rtx, unsigned int, int);
  202. /* Assemble the integer constant X into an object of SIZE bytes. ALIGN is
  203. the alignment of the integer in bits. Return 1 if we were able to output
  204. the constant, otherwise 0. If FORCE is nonzero the constant must
  205. be outputable. */
  206. extern bool assemble_integer (rtx, unsigned, unsigned, int);
  207. /* Return section for TEXT_SECITON_NAME if DECL or DECL_SECTION_NAME (DECL)
  208. is NULL. */
  209. extern section *get_named_text_section (tree, const char *, const char *);
  210. /* An interface to assemble_integer for the common case in which a value is
  211. fully aligned and must be printed. VALUE is the value of the integer
  212. object and SIZE is the number of bytes it contains. */
  213. #define assemble_aligned_integer(SIZE, VALUE) \
  214. assemble_integer (VALUE, SIZE, (SIZE) * BITS_PER_UNIT, 1)
  215. /* Assemble the floating-point constant D into an object of size MODE. ALIGN
  216. is the alignment of the constant in bits. If REVERSE is true, D is output
  217. in reverse storage order. */
  218. extern void assemble_real (REAL_VALUE_TYPE, scalar_float_mode, unsigned,
  219. bool = false);
  220. /* Write the address of the entity given by SYMBOL to SEC. */
  221. extern void assemble_addr_to_section (rtx, section *);
  222. /* Return TRUE if and only if the constant pool has no entries. Note
  223. that even entries we might end up choosing not to emit are counted
  224. here, so there is the potential for missed optimizations. */
  225. extern bool constant_pool_empty_p (void);
  226. extern rtx_insn *peephole (rtx_insn *);
  227. extern void output_shared_constant_pool (void);
  228. extern void output_object_blocks (void);
  229. extern void output_quoted_string (FILE *, const char *);
  230. /* When outputting delayed branch sequences, this rtx holds the
  231. sequence being output. It is null when no delayed branch
  232. sequence is being output, so it can be used as a test in the
  233. insn output code.
  234. This variable is defined in final.c. */
  235. extern rtx_sequence *final_sequence;
  236. /* File in which assembler code is being written. */
  237. #ifdef BUFSIZ
  238. extern FILE *asm_out_file;
  239. #endif
  240. /* The first global object in the file. */
  241. extern const char *first_global_object_name;
  242. /* The first weak object in the file. */
  243. extern const char *weak_global_object_name;
  244. /* Nonnull if the insn currently being emitted was a COND_EXEC pattern. */
  245. extern rtx current_insn_predicate;
  246. /* Last insn processed by final_scan_insn. */
  247. extern rtx_insn *current_output_insn;
  248. /* Nonzero while outputting an `asm' with operands.
  249. This means that inconsistencies are the user's fault, so don't die.
  250. The precise value is the insn being output, to pass to error_for_asm. */
  251. extern const rtx_insn *this_is_asm_operands;
  252. /* Carry information from ASM_DECLARE_OBJECT_NAME
  253. to ASM_FINISH_DECLARE_OBJECT. */
  254. extern int size_directive_output;
  255. extern tree last_assemble_variable_decl;
  256. extern bool first_function_block_is_cold;
  257. /* Decide whether DECL needs to be in a writable section.
  258. RELOC is the same as for SELECT_SECTION. */
  259. extern bool decl_readonly_section (const_tree, int);
  260. /* This can be used to compute RELOC for the function above, when
  261. given a constant expression. */
  262. extern int compute_reloc_for_constant (tree);
  263. /* User label prefix in effect for this compilation. */
  264. extern const char *user_label_prefix;
  265. /* Default target function prologue and epilogue assembler output. */
  266. extern void default_function_pro_epilogue (FILE *);
  267. /* Default target function switched text sections. */
  268. extern void default_function_switched_text_sections (FILE *, tree, bool);
  269. /* Default target hook that outputs nothing to a stream. */
  270. extern void no_asm_to_stream (FILE *);
  271. /* Flags controlling properties of a section. */
  272. #define SECTION_ENTSIZE 0x000ff /* entity size in section */
  273. #define SECTION_CODE 0x00100 /* contains code */
  274. #define SECTION_WRITE 0x00200 /* data is writable */
  275. #define SECTION_DEBUG 0x00400 /* contains debug data */
  276. #define SECTION_LINKONCE 0x00800 /* is linkonce */
  277. #define SECTION_SMALL 0x01000 /* contains "small data" */
  278. #define SECTION_BSS 0x02000 /* contains zeros only */
  279. #define SECTION_FORGET 0x04000 /* forget that we've entered the section */
  280. #define SECTION_MERGE 0x08000 /* contains mergeable data */
  281. #define SECTION_STRINGS 0x10000 /* contains zero terminated strings without
  282. embedded zeros */
  283. #define SECTION_OVERRIDE 0x20000 /* allow override of default flags */
  284. #define SECTION_TLS 0x40000 /* contains thread-local storage */
  285. #define SECTION_NOTYPE 0x80000 /* don't output @progbits */
  286. #define SECTION_DECLARED 0x100000 /* section has been used */
  287. #define SECTION_STYLE_MASK 0x600000 /* bits used for SECTION_STYLE */
  288. #define SECTION_COMMON 0x800000 /* contains common data */
  289. #define SECTION_RELRO 0x1000000 /* data is readonly after relocation processing */
  290. #define SECTION_EXCLUDE 0x2000000 /* discarded by the linker */
  291. #define SECTION_MACH_DEP 0x4000000 /* subsequent bits reserved for target */
  292. /* This SECTION_STYLE is used for unnamed sections that we can switch
  293. to using a special assembler directive. */
  294. #define SECTION_UNNAMED 0x000000
  295. /* This SECTION_STYLE is used for named sections that we can switch
  296. to using a general section directive. */
  297. #define SECTION_NAMED 0x200000
  298. /* This SECTION_STYLE is used for sections that we cannot switch to at
  299. all. The choice of section is implied by the directive that we use
  300. to declare the object. */
  301. #define SECTION_NOSWITCH 0x400000
  302. /* A helper function for default_elf_select_section and
  303. default_elf_unique_section. Categorizes the DECL. */
  304. enum section_category
  305. {
  306. SECCAT_TEXT,
  307. SECCAT_RODATA,
  308. SECCAT_RODATA_MERGE_STR,
  309. SECCAT_RODATA_MERGE_STR_INIT,
  310. SECCAT_RODATA_MERGE_CONST,
  311. SECCAT_SRODATA,
  312. SECCAT_DATA,
  313. /* To optimize loading of shared programs, define following subsections
  314. of data section:
  315. _REL Contains data that has relocations, so they get grouped
  316. together and dynamic linker will visit fewer pages in memory.
  317. _RO Contains data that is otherwise read-only. This is useful
  318. with prelinking as most relocations won't be dynamically
  319. linked and thus stay read only.
  320. _LOCAL Marks data containing relocations only to local objects.
  321. These relocations will get fully resolved by prelinking. */
  322. SECCAT_DATA_REL,
  323. SECCAT_DATA_REL_LOCAL,
  324. SECCAT_DATA_REL_RO,
  325. SECCAT_DATA_REL_RO_LOCAL,
  326. SECCAT_SDATA,
  327. SECCAT_TDATA,
  328. SECCAT_BSS,
  329. SECCAT_SBSS,
  330. SECCAT_TBSS
  331. };
  332. /* Information that is provided by all instances of the section type. */
  333. struct GTY(()) section_common {
  334. /* The set of SECTION_* flags that apply to this section. */
  335. unsigned int flags;
  336. };
  337. /* Information about a SECTION_NAMED section. */
  338. struct GTY(()) named_section {
  339. struct section_common common;
  340. /* The name of the section. */
  341. const char *name;
  342. /* If nonnull, the VAR_DECL or FUNCTION_DECL with which the
  343. section is associated. */
  344. tree decl;
  345. };
  346. /* A callback that writes the assembly code for switching to an unnamed
  347. section. The argument provides callback-specific data. */
  348. typedef void (*unnamed_section_callback) (const void *);
  349. /* Information about a SECTION_UNNAMED section. */
  350. struct GTY(()) unnamed_section {
  351. struct section_common common;
  352. /* The callback used to switch to the section, and the data that
  353. should be passed to the callback. */
  354. unnamed_section_callback GTY ((skip)) callback;
  355. const void *GTY ((skip)) data;
  356. /* The next entry in the chain of unnamed sections. */
  357. section *next;
  358. };
  359. /* A callback that writes the assembly code for a decl in a
  360. SECTION_NOSWITCH section. DECL is the decl that should be assembled
  361. and NAME is the name of its SYMBOL_REF. SIZE is the size of the decl
  362. in bytes and ROUNDED is that size rounded up to the next
  363. BIGGEST_ALIGNMENT / BITS_PER_UNIT boundary.
  364. Return true if the callback used DECL_ALIGN to set the object's
  365. alignment. A false return value implies that we are relying
  366. on the rounded size to align the decl. */
  367. typedef bool (*noswitch_section_callback) (tree decl, const char *name,
  368. unsigned HOST_WIDE_INT size,
  369. unsigned HOST_WIDE_INT rounded);
  370. /* Information about a SECTION_NOSWITCH section. */
  371. struct GTY(()) noswitch_section {
  372. struct section_common common;
  373. /* The callback used to assemble decls in this section. */
  374. noswitch_section_callback GTY ((skip)) callback;
  375. };
  376. /* Information about a section, which may be named or unnamed. */
  377. union GTY ((desc ("SECTION_STYLE (&(%h))"), for_user)) section {
  378. struct section_common GTY ((skip)) common;
  379. struct named_section GTY ((tag ("SECTION_NAMED"))) named;
  380. struct unnamed_section GTY ((tag ("SECTION_UNNAMED"))) unnamed;
  381. struct noswitch_section GTY ((tag ("SECTION_NOSWITCH"))) noswitch;
  382. };
  383. /* Return the style of section SECT. */
  384. #define SECTION_STYLE(SECT) ((SECT)->common.flags & SECTION_STYLE_MASK)
  385. struct object_block;
  386. /* Special well-known sections. */
  387. extern GTY(()) section *text_section;
  388. extern GTY(()) section *data_section;
  389. extern GTY(()) section *readonly_data_section;
  390. extern GTY(()) section *sdata_section;
  391. extern GTY(()) section *ctors_section;
  392. extern GTY(()) section *dtors_section;
  393. extern GTY(()) section *bss_section;
  394. extern GTY(()) section *sbss_section;
  395. extern GTY(()) section *exception_section;
  396. extern GTY(()) section *eh_frame_section;
  397. extern GTY(()) section *tls_comm_section;
  398. extern GTY(()) section *comm_section;
  399. extern GTY(()) section *lcomm_section;
  400. extern GTY(()) section *bss_noswitch_section;
  401. extern GTY(()) section *in_section;
  402. extern GTY(()) bool in_cold_section_p;
  403. extern section *get_unnamed_section (unsigned int, void (*) (const void *),
  404. const void *);
  405. extern section *get_section (const char *, unsigned int, tree);
  406. extern section *get_named_section (tree, const char *, int);
  407. extern section *get_variable_section (tree, bool);
  408. extern void place_block_symbol (rtx);
  409. extern rtx get_section_anchor (struct object_block *, HOST_WIDE_INT,
  410. enum tls_model);
  411. extern section *mergeable_constant_section (machine_mode,
  412. unsigned HOST_WIDE_INT,
  413. unsigned int);
  414. extern section *function_section (tree);
  415. extern section *unlikely_text_section (void);
  416. extern section *current_function_section (void);
  417. extern void switch_to_other_text_partition (void);
  418. /* Return the numbered .ctors.N (if CONSTRUCTOR_P) or .dtors.N (if
  419. not) section for PRIORITY. */
  420. extern section *get_cdtor_priority_section (int, bool);
  421. extern bool unlikely_text_section_p (section *);
  422. extern void switch_to_section (section *);
  423. extern void output_section_asm_op (const void *);
  424. extern void record_tm_clone_pair (tree, tree);
  425. extern void finish_tm_clone_pairs (void);
  426. extern tree get_tm_clone_pair (tree);
  427. extern void default_asm_output_source_filename (FILE *, const char *);
  428. extern void output_file_directive (FILE *, const char *);
  429. extern unsigned int default_section_type_flags (tree, const char *, int);
  430. extern bool have_global_bss_p (void);
  431. extern bool bss_initializer_p (const_tree, bool = false);
  432. extern void default_no_named_section (const char *, unsigned int, tree);
  433. extern void default_elf_asm_named_section (const char *, unsigned int, tree);
  434. extern enum section_category categorize_decl_for_section (const_tree, int);
  435. extern void default_coff_asm_named_section (const char *, unsigned int, tree);
  436. extern void default_pe_asm_named_section (const char *, unsigned int, tree);
  437. extern void default_named_section_asm_out_destructor (rtx, int);
  438. extern void default_dtor_section_asm_out_destructor (rtx, int);
  439. extern void default_named_section_asm_out_constructor (rtx, int);
  440. extern void default_ctor_section_asm_out_constructor (rtx, int);
  441. extern section *default_select_section (tree, int, unsigned HOST_WIDE_INT);
  442. extern section *default_elf_select_section (tree, int, unsigned HOST_WIDE_INT);
  443. extern void default_unique_section (tree, int);
  444. extern section *default_function_rodata_section (tree);
  445. extern section *default_no_function_rodata_section (tree);
  446. extern section *default_clone_table_section (void);
  447. extern section *default_select_rtx_section (machine_mode, rtx,
  448. unsigned HOST_WIDE_INT);
  449. extern section *default_elf_select_rtx_section (machine_mode, rtx,
  450. unsigned HOST_WIDE_INT);
  451. extern void default_encode_section_info (tree, rtx, int);
  452. extern const char *default_strip_name_encoding (const char *);
  453. extern void default_asm_output_anchor (rtx);
  454. extern bool default_use_anchors_for_symbol_p (const_rtx);
  455. extern bool default_binds_local_p (const_tree);
  456. extern bool default_binds_local_p_1 (const_tree, int);
  457. extern bool default_binds_local_p_2 (const_tree);
  458. extern bool default_binds_local_p_3 (const_tree, bool, bool, bool, bool);
  459. extern void default_globalize_label (FILE *, const char *);
  460. extern void default_globalize_decl_name (FILE *, tree);
  461. extern void default_emit_unwind_label (FILE *, tree, int, int);
  462. extern void default_emit_except_table_label (FILE *);
  463. extern void default_generate_internal_label (char *, const char *,
  464. unsigned long);
  465. extern void default_internal_label (FILE *, const char *, unsigned long);
  466. extern void default_asm_declare_constant_name (FILE *, const char *,
  467. const_tree, HOST_WIDE_INT);
  468. extern void default_file_start (void);
  469. extern void file_end_indicate_exec_stack (void);
  470. extern void file_end_indicate_split_stack (void);
  471. extern void default_elf_asm_output_external (FILE *file, tree,
  472. const char *);
  473. extern void default_elf_asm_output_limited_string (FILE *, const char *);
  474. extern void default_elf_asm_output_ascii (FILE *, const char *, unsigned int);
  475. extern void default_elf_internal_label (FILE *, const char *, unsigned long);
  476. extern void default_elf_init_array_asm_out_constructor (rtx, int);
  477. extern void default_elf_fini_array_asm_out_destructor (rtx, int);
  478. extern int maybe_assemble_visibility (tree);
  479. extern int default_address_cost (rtx, machine_mode, addr_space_t, bool);
  480. /* Output stack usage information. */
  481. extern void output_stack_usage (void);
  482. #endif /* ! GCC_OUTPUT_H */