varasm.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* Declarations for varasm.h.
  2. Copyright (C) 2013-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_VARASM_H
  16. #define GCC_VARASM_H
  17. /* The following global holds the "function name" for the code in the
  18. cold section of a function, if hot/cold function splitting is enabled
  19. and there was actually code that went into the cold section. A
  20. pseudo function name is needed for the cold section of code for some
  21. debugging tools that perform symbolization. */
  22. extern tree cold_function_name;
  23. extern tree tree_output_constant_def (tree);
  24. extern void make_decl_rtl (tree);
  25. extern rtx make_decl_rtl_for_debug (tree);
  26. extern void make_decl_one_only (tree, tree);
  27. extern int supports_one_only (void);
  28. extern void resolve_unique_section (tree, int, int);
  29. extern void mark_referenced (tree);
  30. extern void mark_decl_referenced (tree);
  31. extern void notice_global_symbol (tree);
  32. extern void set_user_assembler_name (tree, const char *);
  33. extern void process_pending_assemble_externals (void);
  34. extern bool decl_replaceable_p (tree);
  35. extern bool decl_binds_to_current_def_p (const_tree);
  36. extern enum tls_model decl_default_tls_model (const_tree);
  37. /* Declare DECL to be a weak symbol. */
  38. extern void declare_weak (tree);
  39. /* Merge weak status. */
  40. extern void merge_weak (tree, tree);
  41. /* Make one symbol an alias for another. */
  42. extern void assemble_alias (tree, tree);
  43. /* Return nonzero if VALUE is a valid constant-valued expression
  44. for use in initializing a static variable; one that can be an
  45. element of a "constant" initializer.
  46. Return null_pointer_node if the value is absolute;
  47. if it is relocatable, return the variable that determines the relocation.
  48. We assume that VALUE has been folded as much as possible;
  49. therefore, we do not need to check for such things as
  50. arithmetic-combinations of integers. */
  51. extern tree initializer_constant_valid_p (tree, tree, bool = false);
  52. /* Return true if VALUE is a valid constant-valued expression
  53. for use in initializing a static bit-field; one that can be
  54. an element of a "constant" initializer. */
  55. extern bool initializer_constant_valid_for_bitfield_p (tree);
  56. /* Whether a constructor CTOR is a valid static constant initializer if all
  57. its elements are. This used to be internal to initializer_constant_valid_p
  58. and has been exposed to let other functions like categorize_ctor_elements
  59. evaluate the property while walking a constructor for other purposes. */
  60. extern bool constructor_static_from_elts_p (const_tree);
  61. extern void init_varasm_status (void);
  62. extern rtx assemble_static_space (unsigned HOST_WIDE_INT);
  63. extern rtx assemble_trampoline_template (void);
  64. #endif // GCC_VARASM_H