diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-09-05 19:57:56 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-09-05 19:57:56 +0000 |
commit | 798014c58e9e54b068c30e8e2113d278a0bd6e07 (patch) | |
tree | 342022676600dfe2e5948350a06d04966f949872 /gcc/stor-layout.h | |
parent | 3981fbb65a43dff3a81ebc32c94d6f86bb4f9783 (diff) | |
download | gcc-798014c58e9e54b068c30e8e2113d278a0bd6e07.zip gcc-798014c58e9e54b068c30e8e2113d278a0bd6e07.tar.gz gcc-798014c58e9e54b068c30e8e2113d278a0bd6e07.tar.bz2 |
Make mode_for_size_tree return an opt_mode
...for consistency with mode_for_size
2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* stor-layout.h (mode_for_size_tree): Return an opt_mode.
* stor-layout.c (mode_for_size_tree): Likewise.
(mode_for_array): Update accordingly.
(layout_decl): Likewise.
(compute_record_mode): Likewise. Only set the mode once.
gcc/ada/
* gcc-interface/utils.c (make_packable_type): Update call to
mode_for_size_tree.
From-SVN: r251732
Diffstat (limited to 'gcc/stor-layout.h')
-rw-r--r-- | gcc/stor-layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.h b/gcc/stor-layout.h index 08c37ca..6c8d833 100644 --- a/gcc/stor-layout.h +++ b/gcc/stor-layout.h @@ -99,7 +99,7 @@ extern tree make_unsigned_type (int); If LIMIT is nonzero, then don't use modes bigger than MAX_FIXED_MODE_SIZE. The value is BLKmode if no other mode is found. This is like mode_for_size, but is passed a tree. */ -extern machine_mode mode_for_size_tree (const_tree, enum mode_class, int); +extern opt_machine_mode mode_for_size_tree (const_tree, enum mode_class, int); extern tree bitwise_type_for_mode (machine_mode); |