]> git.ipfire.org Git - thirdparty/gcc.git/commit
Abstract out REAL_VALUE_TYPE streaming.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 18 Apr 2023 05:56:52 +0000 (07:56 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 18 Apr 2023 08:49:33 +0000 (10:49 +0200)
commit6e552ec218a04dac046066e2608202ba90d66f11
tree507cc5dc793ec27e6655fcf0c1074e3ddacb2e95
parent5baf2cccd0345a7ac3d4467343414f8b7ff1724b
Abstract out REAL_VALUE_TYPE streaming.

In upcoming patches I will contribute code to stream out frange's as
well as vrange's.  This patch abstracts out the REAL_VALUE_TYPE
streaming into their own functions, so that they may be used elsewhere.

gcc/ChangeLog:

* data-streamer.cc (bp_pack_real_value): New.
(bp_unpack_real_value): New.
* data-streamer.h (bp_pack_real_value):  New.
(bp_unpack_real_value): New.
* tree-streamer-in.cc (unpack_ts_real_cst_value_fields): Use
bp_unpack_real_value.
* tree-streamer-out.cc (pack_ts_real_cst_value_fields): Use
bp_pack_real_value.
gcc/data-streamer.cc
gcc/data-streamer.h
gcc/tree-streamer-in.cc
gcc/tree-streamer-out.cc