Hmm, looks like a bug in the GCC grammar for function attributes, but if so it's a longstanding one as it's still in GCC 8. Anyway, I installed the attached to work around it.