https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78117 --- Comment #7 from Henrik Grindal Bakken <hgb at ifi dot uio.no> --- We received a patch from Mellanox ages ago which fixed the issue (at least for us). I'll attach the patch.