https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108305
--- Comment #5 from Andreas Schwab <sch...@linux-m68k.org> --- Ignoring unknown fopen flags is traditional behavior which is still present today, both in BSD and GNU. Only the first character is actually checked and rejected if unknown.