https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96573
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:5b9a65ecbeb22ef6dd3344baae97f85b645522e3 commit r11-7946-g5b9a65ecbeb22ef6dd3344baae97f85b645522e3 Author: Jakub Jelinek <ja...@redhat.com> Date: Thu Apr 1 10:51:03 2021 +0200 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 <ja...@redhat.com> PR tree-optimization/96573 * gimple-ssa-store-merging.c (init_symbolic_number): Handle also pointer types. * gcc.dg/pr96573.c: New test.