aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-08-30 11:20:55 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-08-30 11:20:55 +0000
commit382615c64cad28fb4aa0566b25b3f1921b3d6a3d (patch)
tree046a66a93146a14b7764184e569dfeb06b48ad9d /gcc/gdbhooks.py
parent79d22165ea45e89283ccf147d65cbf66548838da (diff)
downloadgcc-382615c64cad28fb4aa0566b25b3f1921b3d6a3d.zip
gcc-382615c64cad28fb4aa0566b25b3f1921b3d6a3d.tar.gz
gcc-382615c64cad28fb4aa0566b25b3f1921b3d6a3d.tar.bz2
[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>. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r251526
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r--gcc/gdbhooks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py
index e5f0cf6f3..acf5435 100644
--- a/gcc/gdbhooks.py
+++ b/gcc/gdbhooks.py
@@ -548,7 +548,8 @@ def build_pretty_printer():
'opt_mode', OptMachineModePrinter)
pp.add_printer_for_regex(r'pod_mode<(\S+)>',
'pod_mode', MachineModePrinter)
- pp.add_printer_for_types(['scalar_int_mode_pod'],
+ pp.add_printer_for_types(['scalar_int_mode_pod',
+ 'scalar_mode_pod'],
'pod_mode', MachineModePrinter)
for mode in 'scalar_mode', 'scalar_int_mode', 'scalar_float_mode':
pp.add_printer_for_types([mode], mode, MachineModePrinter)