comparison gcc/varasm.h @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
comparison
equal deleted inserted replaced
15:561a7518be6b 16:04ced10e8804
1 /* Declarations for varasm.h.
2 Copyright (C) 2013-2017 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
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.
10
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.
15
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/>. */
19
20 #ifndef GCC_VARASM_H
21 #define GCC_VARASM_H
22
23 /* The following global holds the "function name" for the code in the
24 cold section of a function, if hot/cold function splitting is enabled
25 and there was actually code that went into the cold section. A
26 pseudo function name is needed for the cold section of code for some
27 debugging tools that perform symbolization. */
28 extern tree cold_function_name;
29
30 extern tree tree_output_constant_def (tree);
31 extern void make_decl_rtl (tree);
32 extern rtx make_decl_rtl_for_debug (tree);
33 extern void make_decl_one_only (tree, tree);
34 extern int supports_one_only (void);
35 extern void resolve_unique_section (tree, int, int);
36 extern void mark_referenced (tree);
37 extern void mark_decl_referenced (tree);
38 extern void notice_global_symbol (tree);
39 extern void set_user_assembler_name (tree, const char *);
40 extern void process_pending_assemble_externals (void);
41 extern bool decl_replaceable_p (tree);
42 extern bool decl_binds_to_current_def_p (const_tree);
43 extern enum tls_model decl_default_tls_model (const_tree);
44
45 /* Declare DECL to be a weak symbol. */
46 extern void declare_weak (tree);
47
48 /* Merge weak status. */
49 extern void merge_weak (tree, tree);
50
51 /* Make one symbol an alias for another. */
52 extern void assemble_alias (tree, tree);
53
54 /* Return nonzero if VALUE is a valid constant-valued expression
55 for use in initializing a static variable; one that can be an
56 element of a "constant" initializer.
57
58 Return null_pointer_node if the value is absolute;
59 if it is relocatable, return the variable that determines the relocation.
60 We assume that VALUE has been folded as much as possible;
61 therefore, we do not need to check for such things as
62 arithmetic-combinations of integers. */
63 extern tree initializer_constant_valid_p (tree, tree, bool = false);
64
65 /* Return true if VALUE is a valid constant-valued expression
66 for use in initializing a static bit-field; one that can be
67 an element of a "constant" initializer. */
68 extern bool initializer_constant_valid_for_bitfield_p (tree);
69
70 /* Whether a constructor CTOR is a valid static constant initializer if all
71 its elements are. This used to be internal to initializer_constant_valid_p
72 and has been exposed to let other functions like categorize_ctor_elements
73 evaluate the property while walking a constructor for other purposes. */
74 extern bool constructor_static_from_elts_p (const_tree);
75
76 extern void init_varasm_status (void);
77
78 extern rtx assemble_static_space (unsigned HOST_WIDE_INT);
79
80 extern rtx assemble_trampoline_template (void);
81
82 #endif // GCC_VARASM_H