aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2018-01-03 21:39:45 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-01-03 21:39:45 +0000
commitb660eccf9b32ee3b962a77cf5565fa2771792c35 (patch)
tree88c1a9e2b3ca8d0456ff1cbb81cd75036a2c1ef8 /gcc/builtins.h
parent16c78b665aa4ce64af71b6ac7ebaa96c9807be4c (diff)
downloadgcc-b660eccf9b32ee3b962a77cf5565fa2771792c35.zip
gcc-b660eccf9b32ee3b962a77cf5565fa2771792c35.tar.gz
gcc-b660eccf9b32ee3b962a77cf5565fa2771792c35.tar.bz2
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
Diffstat (limited to 'gcc/builtins.h')
-rw-r--r--gcc/builtins.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.h b/gcc/builtins.h
index 8cc868f..c922904 100644
--- a/gcc/builtins.h
+++ b/gcc/builtins.h
@@ -29,14 +29,14 @@ struct target_builtins {
the register is not used for calling a function. If the machine
has register windows, this gives only the outbound registers.
INCOMING_REGNO gives the corresponding inbound register. */
- machine_mode x_apply_args_mode[FIRST_PSEUDO_REGISTER];
+ fixed_size_mode_pod x_apply_args_mode[FIRST_PSEUDO_REGISTER];
/* For each register that may be used for returning values, this gives
a mode used to copy the register's value. VOIDmode indicates the
register is not used for returning values. If the machine has
register windows, this gives only the outbound registers.
INCOMING_REGNO gives the corresponding inbound register. */
- machine_mode x_apply_result_mode[FIRST_PSEUDO_REGISTER];
+ fixed_size_mode_pod x_apply_result_mode[FIRST_PSEUDO_REGISTER];
};
extern struct target_builtins default_target_builtins;