annotate gcc/varasm.h @ 16:04ced10e8804

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