Add a fixed_size_mode_pod class
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 3 Jan 2018 21:39:45 +0000 (21:39 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 3 Jan 2018 21:39:45 +0000 (21:39 +0000)
commitb660eccf9b32ee3b962a77cf5565fa2771792c35
tree88c1a9e2b3ca8d0456ff1cbb81cd75036a2c1ef8
parent16c78b665aa4ce64af71b6ac7ebaa96c9807be4c
Add a fixed_size_mode_pod class

This patch adds a POD version of fixed_size_mode.  The only current use
is for storing the __builtin_apply and __builtin_result register modes,
which were made fixed_size_modes by the previous patch.

2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* coretypes.h (fixed_size_mode): Declare.
(fixed_size_mode_pod): New typedef.
* builtins.h (target_builtins::x_apply_args_mode)
(target_builtins::x_apply_result_mode): Change type to
fixed_size_mode_pod.
* builtins.c (apply_args_size, apply_result_size, result_vector)
(expand_builtin_apply_args_1, expand_builtin_apply)
(expand_builtin_return): Update accordingly.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r256193
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.h
gcc/coretypes.h