[11/77] Add a float_mode_for_size helper function
commit99d671f4d8a7a4e8338a949b4a95c44ba0dfc782
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:09:41 +0000 (30 11:09 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:09:41 +0000 (30 11:09 +0000)
tree60a693fba5c631712da730e6ce07a8deda2af759
parent243bcce30126f84c0bf71a39a6571250e866b7ac
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251463 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/coretypes.h
gcc/emit-rtl.c
gcc/gdbhooks.py
gcc/machmode.h
gcc/stor-layout.c