diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-30 11:20:55 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-30 11:20:55 +0000 |
commit | af71096c672bed5a22e28fe4aeb9ee0c4d91d025 (patch) | |
tree | 046a66a93146a14b7764184e569dfeb06b48ad9d /gcc/machmode.h | |
parent | 3c8dda1fa503be2c3d2da02c8e829dc7539c5c4a (diff) | |
download | gcc-af71096c672bed5a22e28fe4aeb9ee0c4d91d025.tar.gz |
[76/77] Add a scalar_mode_pod class
This patch adds a scalar_mode_pod class and uses it to
replace the machine_mode in fixed_value.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* coretypes.h (scalar_mode_pod): New typedef.
* gdbhooks.py (build_pretty_printer): Handle it.
* machmode.h (gt_ggc_mx, gt_pch_nx): New functions.
* fixed-value.h (fixed_value::mode): Change type to scalar_mode_pod.
* fold-const.c (fold_convert_const_int_from_fixed): Use scalar_mode.
* tree-streamer-in.c (unpack_ts_fixed_cst_value_fields): Use
as_a <scalar_mode>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251526 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index b3e79ca4df6..73c45beb655 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -893,4 +893,22 @@ namespace mode_iterator mode_iterator::iterate_p (&(ITERATOR)); \ mode_iterator::get_2xwider (&(ITERATOR))) +template<typename T> +void +gt_ggc_mx (pod_mode<T> *) +{ +} + +template<typename T> +void +gt_pch_nx (pod_mode<T> *) +{ +} + +template<typename T> +void +gt_pch_nx (pod_mode<T> *, void (*) (void *, void *), void *) +{ +} + #endif /* not HAVE_MACHINE_MODES */ |