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