diff options
author | Richard Biener <rguenther@suse.de> | 2025-03-20 10:48:38 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-03-21 10:32:02 +0100 |
commit | ff7ac551ba2e1bf996586ae053d4d5f2cbf05c91 (patch) | |
tree | b3a418ce97e294c70aea21351f626c73e3e4b8b6 /gcc/rust/backend/rust-compile-base.h | |
parent | 2b383ae2a6e5fc0530bfd8b86ad0e6b27e760bd2 (diff) | |
download | gcc-ff7ac551ba2e1bf996586ae053d4d5f2cbf05c91.zip gcc-ff7ac551ba2e1bf996586ae053d4d5f2cbf05c91.tar.gz gcc-ff7ac551ba2e1bf996586ae053d4d5f2cbf05c91.tar.bz2 |
move global data to symbol_table_init
The following avoids early runtime initialization of cbl_field_t
objects which, when using tree to represent the current _Float128
data, segfaults as tree data like float128_type_node is not yet
initialized. The solution is to move the global data to
symbol_table_init which is the only user and it already has one
such instance locally, the 'constants' array.
* symbols.cc (empty_float, empty_comp5, empty_literal,
empty_conditional, debug_registers, special_registers): Move
global cbl_field_t typed data to ...
(symbol_table_init): ... local scope here.
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
0 files changed, 0 insertions, 0 deletions