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