]> gcc.gnu.org Git - gcc.git/commit
[11/77] Add a float_mode_for_size helper function
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 30 Aug 2017 11:09:41 +0000 (11:09 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 11:09:41 +0000 (11:09 +0000)
commit857c7b46875bdcf9d889543baad54977034d57ef
tree60a693fba5c631712da730e6ce07a8deda2af759
parentd16c828e7aa2a704d887b071864823fc1e39670f
[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
gcc/ChangeLog
gcc/coretypes.h
gcc/emit-rtl.c
gcc/gdbhooks.py
gcc/machmode.h
gcc/stor-layout.c
This page took 0.058677 seconds and 5 git commands to generate.