https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101473
--- Comment #3 from tonyb at cybernetics dot com --- The output is reproducible for me with that test program too. Try this program instead: #include <stdlib.h> #include <stdio.h> int main(int argc, char **argv) { if (freopen("/dev/null", "w", stdout) == NULL) return 1; return 0; }