Backport a fix for GMP patches to backports-release-1.10
#51445
Merged
backports-release-1.10
#51445