Fix build on architectures that use base GCC
PR: 231689 Submitted by: Piotr Kubaj Approved by: maintainer