From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 1290F3857C44; Tue, 14 Sep 2021 12:35:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1290F3857C44 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/casm-state-v3)] Step #4. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/casm-state-v3 X-Git-Oldrev: 861451ad297b47a9ef40dd78f8f9bacaf43029a7 X-Git-Newrev: e516a9f39a52ac6cc516d7dba62f7cd7b8f1daaa Message-Id: <20210914123529.1290F3857C44@sourceware.org> Date: Tue, 14 Sep 2021 12:35:29 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2021 12:35:29 -0000 https://gcc.gnu.org/g:e516a9f39a52ac6cc516d7dba62f7cd7b8f1daaa commit e516a9f39a52ac6cc516d7dba62f7cd7b8f1daaa Author: Martin Liska 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
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::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 /* A table of object_blocks, indexed by section. */ static GTY(()) hash_table *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;