diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-05-31 12:25:28 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-06-01 18:25:47 +0000 |
commit | 34aae6b561871d6d8b10c810f303cb6f18b5fdd0 (patch) | |
tree | de7a043d78d5540fa219a3e12778edf1344942eb /gcc/tree-ssa-phiopt.c | |
parent | 833d348aec154f231525ad2bf4c8a51c8d16b213 (diff) | |
download | gcc-34aae6b561871d6d8b10c810f303cb6f18b5fdd0.zip gcc-34aae6b561871d6d8b10c810f303cb6f18b5fdd0.tar.gz gcc-34aae6b561871d6d8b10c810f303cb6f18b5fdd0.tar.bz2 |
Use is_empty_type instead of zero-sized type.
Instead of only removing assignments of zero-sized types,
assignments of all empty types should be removed during gimplification.
This moves to use is_empty_type which will be used in other places too.
OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions.
Thanks,
Andrew Pinski
gcc/ChangeLog:
* gimplify.c (zero_sized_field_decl): Delete
(zero_sized_type): Delete
(gimplify_init_ctor_eval): Use is_empty_type instead
of zero_sized_field_decl.
(gimplify_modify_expr): Use is_empty_type instead of
zero_sized_type.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions