diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2024-06-05 04:22:25 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2024-06-05 04:22:25 -0500 |
commit | 37a4800939bd90400e03a8fa561d2a0df394bced (patch) | |
tree | 8ef1d5e1c2f1b0ebd5c3a5dbd1cb15190c4f745b /gcc/tree-vect-loop.cc | |
parent | b36461f126148b027e7541aaf356d5322a0fbc08 (diff) | |
download | gcc-37a4800939bd90400e03a8fa561d2a0df394bced.zip gcc-37a4800939bd90400e03a8fa561d2a0df394bced.tar.gz gcc-37a4800939bd90400e03a8fa561d2a0df394bced.tar.bz2 |
fortran: 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 fortran with TYPE_PRECISION of
{float,{,long_}double}_type_node.
[1] https://gcc.gnu.org/pipermail/gcc-patches/2024-May/651209.html
gcc/fortran/ChangeLog:
* trans-intrinsic.cc (build_round_expr): Use TYPE_PRECISION of
long_double_type_node to replace LONG_DOUBLE_TYPE_SIZE.
* trans-types.cc (gfc_build_real_type): Use TYPE_PRECISION of
{float,double,long_double}_type_node to replace
{FLOAT,DOUBLE,LONG_DOUBLE}_TYPE_SIZE.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions