https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102259
--- Comment #11 from Michel Morin <mimomorin at gmail dot com> --- Brilliant, I appreciate it! I tested with an 8 GB file and confirmed that this fixes the issue on both Intel and Apple silicon Macs.