https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120666
--- Comment #2 from BBK <eebssk1 at godaftwithebk dot pub> --- I cherry-picked the change from "See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116674" to gcc-14 branch and tested the reult toolchain. FFmpeg built without problem now.