diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:09:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:09:41 +0000 |
commit | 857c7b46875bdcf9d889543baad54977034d57ef (patch) | |
tree | 60a693fba5c631712da730e6ce07a8deda2af759 /gcc/gdbhooks.py | |
parent | d16c828e7aa2a704d887b071864823fc1e39670f (diff) | |
download | gcc-857c7b46875bdcf9d889543baad54977034d57ef.zip gcc-857c7b46875bdcf9d889543baad54977034d57ef.tar.gz gcc-857c7b46875bdcf9d889543baad54977034d57ef.tar.bz2 |
[11/77] Add a float_mode_for_size helper function
This provides a type-safe way to ask for a float mode and get it as a
scalar_float_mode.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* coretypes.h (opt_scalar_float_mode): New typedef.
* machmode.h (float_mode_for_size): New function.
* emit-rtl.c (double_mode): Delete.
(init_emit_once): Use float_mode_for_size.
* stor-layout.c (layout_type): Likewise.
* gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251463
Diffstat (limited to 'gcc/gdbhooks.py')
-rw-r--r-- | gcc/gdbhooks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index 4cbcefc..8d0c065 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -542,6 +542,8 @@ def build_pretty_printer(): pp.add_printer_for_regex(r'opt_mode<(\S+)>', 'opt_mode', OptMachineModePrinter) + pp.add_printer_for_types(['opt_scalar_float_mode'], + 'opt_mode', OptMachineModePrinter) pp.add_printer_for_types(['scalar_float_mode'], 'scalar_float_mode', MachineModePrinter) |