https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83312
--- Comment #8 from Arnd Bergmann <arnd at linaro dot org> --- (In reply to David Malcolm from comment #7) > Candidate patch: > https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00778.html I confirmed this fixes the problem on both the original source file as well as the reduced test case.