diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:09:56 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:09:56 +0000 |
commit | 1ce87609c91e51d7eee8284c5fe000c7d5b240db (patch) | |
tree | 546db64fb195401be1446efc42e41df63d77178e /gcc/tree.c | |
parent | 5c20c4af29da29d2bb74b1fdf3c116f564431878 (diff) | |
download | gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.zip gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.tar.gz gcc-1ce87609c91e51d7eee8284c5fe000c7d5b240db.tar.bz2 |
[13/77] Make floatn_mode return an opt_scalar_float_mode
As per subject.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* target.def (default_floatn_mode): Return an opt_scalar_float_mode.
* doc/tm.texi: Regenerate.
* config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
* config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
* config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
* targhooks.h (default_floatn_mode): Likewise.
* targhooks.c (default_floatn_mode): Likewise.
* tree.c (build_common_tree_nodes): Update accordingly.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251465
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9689,8 +9689,8 @@ build_common_tree_nodes (bool signed_char) { int n = floatn_nx_types[i].n; bool extended = floatn_nx_types[i].extended; - machine_mode mode = targetm.floatn_mode (n, extended); - if (mode == VOIDmode) + scalar_float_mode mode; + if (!targetm.floatn_mode (n, extended).exists (&mode)) continue; int precision = GET_MODE_PRECISION (mode); /* Work around the rs6000 KFmode having precision 113 not |