output.h 24 KB

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