crl@GIBBS.PHYSICS.PURDUE.EDU ("Charles R. LaBrec") (10/17/88)
There is a bug in v1.30 gcc-cpp that prevents output to stdout when an output file is never specified. The variable out_fname is NULL in this case, but the conditional is incorrect. A diff follows. Charles LaBrec crl@physics.purdue.edu *** cccp.c-dist Sun Oct 16 02:16:45 1988 --- cccp.c Sun Oct 16 12:34:24 1988 *************** *** 967,973 **** /* Now that we know the input file is valid, open the output. */ ! if (out_fname && !strcmp (out_fname, "")) out_fname = "stdout"; else if (! freopen (out_fname, "w", stdout)) pfatal_with_name (out_fname); --- 967,973 ---- /* Now that we know the input file is valid, open the output. */ ! if (out_fname == NULL || !strcmp (out_fname, "")) out_fname = "stdout"; else if (! freopen (out_fname, "w", stdout)) pfatal_with_name (out_fname);