[gcc(refs/users/marxin/heads/casm-state-v3)] Step #4.
Martin Liska
marxin@gcc.gnu.org
Tue Sep 14 12:35:29 GMT 2021
https://gcc.gnu.org/g:e516a9f39a52ac6cc516d7dba62f7cd7b8f1daaa
commit e516a9f39a52ac6cc516d7dba62f7cd7b8f1daaa
Author: Martin Liska <mliska@suse.cz>
Date: Tue Sep 7 14:15:46 2021 +0200
Step #4.
Diff:
---
gcc/output.h | 5 ++++-
gcc/varasm.c | 5 +----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gcc/output.h b/gcc/output.h
index 3c7cb4c904c..adb473917bd 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -324,7 +324,7 @@ struct section_hasher : ggc_ptr_hash<section>
struct GTY(()) asm_out_state
{
asm_out_state (): out_file (NULL), in_section (NULL),
- sections ({}), in_cold_section_p (false)
+ sections ({}), anchor_labelno (0), in_cold_section_p (false)
{
section_htab = hash_table<section_hasher>::create_ggc (31);
}
@@ -345,6 +345,9 @@ struct GTY(()) asm_out_state
section *data;
} sections;
+ /* The next number to use for internal anchor labels. */
+ int anchor_labelno;
+
/* True if code for the current function is currently being directed
at the cold section. */
bool in_cold_section_p;
diff --git a/gcc/varasm.c b/gcc/varasm.c
index ad9578f3638..30c70b0a43a 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -182,9 +182,6 @@ struct object_block_hasher : ggc_ptr_hash<object_block>
/* A table of object_blocks, indexed by section. */
static GTY(()) hash_table<object_block_hasher> *object_block_htab;
-/* The next number to use for internal anchor labels. */
-static GTY(()) int anchor_labelno;
-
/* A pool of constants that can be shared between functions. */
static GTY(()) struct rtx_constant_pool *shared_constant_pool;
@@ -7978,7 +7975,7 @@ get_section_anchor (struct object_block *block, HOST_WIDE_INT offset,
}
/* Create a new anchor with a unique label. */
- ASM_GENERATE_INTERNAL_LABEL (label, "LANCHOR", anchor_labelno++);
+ ASM_GENERATE_INTERNAL_LABEL (label, "LANCHOR", casm->anchor_labelno++);
anchor = create_block_symbol (ggc_strdup (label), block, offset);
SYMBOL_REF_FLAGS (anchor) |= SYMBOL_FLAG_LOCAL | SYMBOL_FLAG_ANCHOR;
SYMBOL_REF_FLAGS (anchor) |= model << SYMBOL_FLAG_TLS_SHIFT;
More information about the Gcc-cvs
mailing list