2013-11-21 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / varasm.h
blobd2a01a700ab6dae9bd9189c21bb80396f67e85e8
1 /* Declarations for varasm.h.
2 Copyright (C) 2013 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_VARASM_H
21 #define GCC_VARASM_H
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 (tree);
36 extern enum tls_model decl_default_tls_model (const_tree);
38 /* Declare DECL to be a weak symbol. */
39 extern void declare_weak (tree);
41 /* Merge weak status. */
42 extern void merge_weak (tree, tree);
44 /* Make one symbol an alias for another. */
45 extern void assemble_alias (tree, tree);
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.
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. */
56 extern tree initializer_constant_valid_p (tree, tree);
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. */
61 extern bool initializer_constant_valid_for_bitfield_p (tree);
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. */
67 extern bool constructor_static_from_elts_p (const_tree);
69 #endif // GCC_VARASM_H