gcc: fix build for ARM with host gcc 7.1.1
Backports patch from upstream: https://github.com/gcc-mirror/gcc/commit/8db2cf6353c13f2a84cbe49b689654897906c499
Edited by Sergey Avseyev
Backports patch from upstream: https://github.com/gcc-mirror/gcc/commit/8db2cf6353c13f2a84cbe49b689654897906c499