diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:10:18 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:10:18 +0000 |
commit | bf862c537bfd76233e3938cb3811f0fa2d27de25 (patch) | |
tree | 5fd8f2ebbbbf5d9f4a23b09cb8fb7bf2880aed0a /gcc/gdbhooks.py | |
parent | 501623d42404843e3b737db24bbd575db937ce1d (diff) | |
download | gcc-bf862c537bfd76233e3938cb3811f0fa2d27de25.zip gcc-bf862c537bfd76233e3938cb3811f0fa2d27de25.tar.gz gcc-bf862c537bfd76233e3938cb3811f0fa2d27de25.tar.bz2 |
[16/77] Add scalar_int_mode_pod
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-08-30 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.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251468
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r-- | gcc/gdbhooks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 782e93f..678698d 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -545,6 +545,10 @@ def build_pretty_printer(): pp.add_printer_for_types(['opt_scalar_int_mode', 'opt_scalar_float_mode'], 'opt_mode', OptMachineModePrinter) + pp.add_printer_for_regex(r'pod_mode<(\S+)>', + 'pod_mode', MachineModePrinter) + pp.add_printer_for_types(['scalar_int_mode_pod'], + 'pod_mode', MachineModePrinter) for mode in 'scalar_int_mode', 'scalar_float_mode': pp.add_printer_for_types([mode], mode, MachineModePrinter) |