Roll forward - 19th March 2024
Created by: Slattz
Based on upstream GCC commit c7a774edbf802d79b95871ede5b80f6e9adf8e88
(19th March 2024). Expected to be force-pushed in the coming days.
Note that this fixes compilation issues with XCVmem while keeping compatibility with Zhinx (hence why it doesn't use ANYF), so it would be a good idea to tidy and resubmit the patch again as it's otherwise broken.