This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [16/77] Add scalar_int_mode_pod
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard dot sandiford at linaro dot org
- Date: Mon, 14 Aug 2017 12:23:07 -0600
- Subject: Re: [16/77] Add scalar_int_mode_pod
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 62E341212C
- References: <8760ewohsv.fsf@linaro.org> <878tjslo9o.fsf@linaro.org>
On 07/13/2017 02:44 AM, Richard Sandiford wrote:
> This patch adds a POD class for scalar integers, as an instance
> of a new pod_mode template. Later patches will use pod_mode in
> situations that really do need to be POD; this patch is simply
> using PODs to remove load-time initialisation.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * coretypes.h (pod_mode): New type.
> (scalar_int_mode_pod): New typedef.
> * machmode.h (pod_mode): New class.
> (int_n_data_t::m): Change type to scalar_int_mode_pod.
> * genmodes.c (emit_mode_int_n): Update accordingly.
> * lower-subreg.h (target_lower_subreg): Change type to
> scalar_int_mode_pod.
> * gdbhooks.py (build_pretty_printer): Handle pod_mode and
> scalar_int_mode_pod.
OK.
jeff