[76/77] Add a scalar_mode_pod class
commitaf71096c672bed5a22e28fe4aeb9ee0c4d91d025
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:20:55 +0000 (30 11:20 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:20:55 +0000 (30 11:20 +0000)
tree046a66a93146a14b7764184e569dfeb06b48ad9d
parent3c8dda1fa503be2c3d2da02c8e829dc7539c5c4a
[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
gcc/ChangeLog
gcc/coretypes.h
gcc/fixed-value.h
gcc/fold-const.c
gcc/gdbhooks.py
gcc/machmode.h
gcc/tree-streamer-in.c