]> git.ipfire.org Git - thirdparty/gcc.git/commit
vms: Replace use of LONG_DOUBLE_TYPE_SIZE
authorKewen Lin <linkw@linux.ibm.com>
Tue, 25 Jun 2024 05:04:51 +0000 (00:04 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 25 Jun 2024 05:04:51 +0000 (00:04 -0500)
commit7eddf6e857bc79cfa0bee3b9ad89a7e16a81d1e8
tree2b0c17951652e93d163d83cbfb47152f5fb0f47f
parentbcd1b7a097031d33bc74943bb260d12ff801cf3f
vms: Replace use of LONG_DOUBLE_TYPE_SIZE

Joseph pointed out "floating types should have their mode,
not a poorly defined precision value" in the discussion[1],
as he and Richi suggested, the existing macros
{FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE will be replaced with a
hook mode_for_floating_type.  To be prepared for that, this
patch is to replace use of LONG_DOUBLE_TYPE_SIZE in vms port
with TYPE_PRECISION of long_double_type_node.

[1] https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651209.html

gcc/ChangeLog:

* config/vms/vms.cc (vms_patch_builtins): Use TYPE_PRECISION of
long_double_type_node to replace LONG_DOUBLE_TYPE_SIZE.
gcc/config/vms/vms.cc