This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Unlock the stdio streams
Zack Weinberg <zack@codesourcery.com> writes:
> Indeed, and one of my vague "it would be nice"s is to do the temp file
> creation in gcc.c when not -pipe, and always invoke cc1 writing to
> stdout, and maybe even remove its ability to write anywhere else
> (hence asm_out_file would disappear).
For what it's worth, this should in principle be easy to do using the
new pexecute interface. Let -pipe control whether PEX_USE_PIPES is
passed to pex_init, and replace use_pipes with true in do_spec_1.
-save-temps is a little tricker--you need to do something like build
an array of output file names, and explicitly pass them to pex_run.
Not that I've tried to do this.
Ian