r251526 - in /trunk/gcc: ChangeLog coretypes.h ...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Wed Aug 30 11:20:00 GMT 2017


Author: rsandifo
Date: Wed Aug 30 11:20:55 2017
New Revision: 251526

URL: https://gcc.gnu.org/viewcvs?rev=251526&root=gcc&view=rev
Log:
[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>.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/coretypes.h
    trunk/gcc/fixed-value.h
    trunk/gcc/fold-const.c
    trunk/gcc/gdbhooks.py
    trunk/gcc/machmode.h
    trunk/gcc/tree-streamer-in.c



More information about the Gcc-cvs mailing list