varasm.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* Declarations for varasm.h.
  2. Copyright (C) 2013-2015 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. extern tree tree_output_constant_def (tree);
  18. extern void make_decl_rtl (tree);
  19. extern rtx make_decl_rtl_for_debug (tree);
  20. extern void make_decl_one_only (tree, tree);
  21. extern int supports_one_only (void);
  22. extern void resolve_unique_section (tree, int, int);
  23. extern void mark_referenced (tree);
  24. extern void mark_decl_referenced (tree);
  25. extern void notice_global_symbol (tree);
  26. extern void set_user_assembler_name (tree, const char *);
  27. extern void process_pending_assemble_externals (void);
  28. extern bool decl_replaceable_p (tree);
  29. extern bool decl_binds_to_current_def_p (const_tree);
  30. extern enum tls_model decl_default_tls_model (const_tree);
  31. /* Declare DECL to be a weak symbol. */
  32. extern void declare_weak (tree);
  33. /* Merge weak status. */
  34. extern void merge_weak (tree, tree);
  35. /* Make one symbol an alias for another. */
  36. extern void assemble_alias (tree, tree);
  37. /* Return nonzero if VALUE is a valid constant-valued expression
  38. for use in initializing a static variable; one that can be an
  39. element of a "constant" initializer.
  40. Return null_pointer_node if the value is absolute;
  41. if it is relocatable, return the variable that determines the relocation.
  42. We assume that VALUE has been folded as much as possible;
  43. therefore, we do not need to check for such things as
  44. arithmetic-combinations of integers. */
  45. extern tree initializer_constant_valid_p (tree, tree);
  46. /* Return true if VALUE is a valid constant-valued expression
  47. for use in initializing a static bit-field; one that can be
  48. an element of a "constant" initializer. */
  49. extern bool initializer_constant_valid_for_bitfield_p (tree);
  50. /* Whether a constructor CTOR is a valid static constant initializer if all
  51. its elements are. This used to be internal to initializer_constant_valid_p
  52. and has been exposed to let other functions like categorize_ctor_elements
  53. evaluate the property while walking a constructor for other purposes. */
  54. extern bool constructor_static_from_elts_p (const_tree);
  55. extern void init_varasm_status (void);
  56. extern rtx assemble_static_space (unsigned HOST_WIDE_INT);
  57. extern rtx assemble_trampoline_template (void);
  58. #endif // GCC_VARASM_H