diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-04-01 10:51:03 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-04-01 10:51:03 +0200 |
commit | 5b9a65ecbeb22ef6dd3344baae97f85b645522e3 (patch) | |
tree | 41a6cb28406c7a1dc4403fad2d220cbf187e2485 /gcc/cp/class.c | |
parent | b75c4e1384c021ca94fc8e8db8e517e802b820f3 (diff) | |
download | gcc-5b9a65ecbeb22ef6dd3344baae97f85b645522e3.zip gcc-5b9a65ecbeb22ef6dd3344baae97f85b645522e3.tar.gz gcc-5b9a65ecbeb22ef6dd3344baae97f85b645522e3.tar.bz2 |
bswap: Handle bswapping of pointers [PR96573]
In GCC8/9 we used to optimize this into a bswap, but we no longer do.
Handling byteswapping of pointers is easy, all we need is to allow them,
for the __builtin_bswap* we already use TYPE_PRECISION to determine
the precision and we cast the operand and result to the correct type
if they aren't uselessly convertible to what the builtin expects.
2021-04-01 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/96573
* gimple-ssa-store-merging.c (init_symbolic_number): Handle
also pointer types.
* gcc.dg/pr96573.c: New test.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions