aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-02-17 22:50:36 +0000
committerDoug Evans <dje@gnu.org>1994-02-17 22:50:36 +0000
commit868e87899b12b97b41c5ecddb2cbf57c7da2cfe1 (patch)
tree9f2beccfd0396727c68381ae9f462da2609470ed
parent1e50b042c434ecdf983720755a99b7f087192e09 (diff)
downloadgcc-868e87899b12b97b41c5ecddb2cbf57c7da2cfe1.zip
gcc-868e87899b12b97b41c5ecddb2cbf57c7da2cfe1.tar.gz
gcc-868e87899b12b97b41c5ecddb2cbf57c7da2cfe1.tar.bz2
(DECL_SECTION_NAME): New macro.
(struct tree_decl): New member `section_name'. From-SVN: r6584
-rw-r--r--gcc/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index dd813e9..a9d073e 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -727,6 +727,9 @@ struct tree_type
Often this is the same as DECL_NAME.
It is an IDENTIFIER_NODE. */
#define DECL_ASSEMBLER_NAME(NODE) ((NODE)->decl.assembler_name)
+/* Records the section name in a section attribute. Used to pass
+ the name from decl_attributes to make_function_rtl and make_decl_rtl. */
+#define DECL_SECTION_NAME(NODE) ((NODE)->decl.section_name)
/* For FIELD_DECLs, this is the
RECORD_TYPE, UNION_TYPE, or QUAL_UNION_TYPE node that the field is
a member of. For VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
@@ -946,6 +949,7 @@ struct tree_decl
/* The PRINT_NAME field is marked for death. */
char *print_name;
union tree_node *assembler_name;
+ union tree_node *section_name;
struct rtx_def *rtl; /* acts as link to register transfer language
(rtl) info */
/* For a FUNCTION_DECL, if inline, this is the size of frame needed.