That's been in GCC since, what, 2003? [1]
[1] https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attribut...
[1] https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attribut...
Worse, for formatter-warnings, we needed them badly 20 years ago when all we had were printf-style functions. There's little need for them in modern C++.
On the other hand, gcc's equivalent of pragma optimize is a comparatively recent addition! - and I know which one has caused me more heartache over the years (hint: not format strings).