diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2024-06-25 00:04:49 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2024-06-25 00:04:49 -0500 |
commit | bcd1b7a097031d33bc74943bb260d12ff801cf3f (patch) | |
tree | 49f859005869f1037f8152ac93b05faf3ce119f5 /gcc/dwarf2codeview.h | |
parent | fafd87830937d5a0eddeb4e1110910ad817c11b4 (diff) | |
download | gcc-bcd1b7a097031d33bc74943bb260d12ff801cf3f.zip gcc-bcd1b7a097031d33bc74943bb260d12ff801cf3f.tar.gz gcc-bcd1b7a097031d33bc74943bb260d12ff801cf3f.tar.bz2 |
rust: Replace uses of {FLOAT,{,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 {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE
in rust with TYPE_PRECISION of {float,{,long_}double}_type_node.
[1] https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651209.html
gcc/rust/ChangeLog:
* rust-gcc.cc (float_type): Use TYPE_PRECISION of
{float,double,long_double}_type_node to replace
{FLOAT,DOUBLE,LONG_DOUBLE}_TYPE_SIZE.
Diffstat (limited to 'gcc/dwarf2codeview.h')
0 files changed, 0 insertions, 0 deletions