aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-14 16:05:57 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2017-06-14 17:05:57 +0100
commite72c4afd99c06e29b4f73f61ee0ff9091bf7fa02 (patch)
tree8b372d46d33e5b585b9e4735fe7bc7e234ad0e79 /gcc/go
parent4524009c09ac5148643c1226f6868ef38cc44e6c (diff)
downloadgcc-e72c4afd99c06e29b4f73f61ee0ff9091bf7fa02.zip
gcc-e72c4afd99c06e29b4f73f61ee0ff9091bf7fa02.tar.gz
gcc-e72c4afd99c06e29b4f73f61ee0ff9091bf7fa02.tar.bz2
Recognize '-' as special -MF argument (write to stdout)
Sometimes it is useful to generate pre-processed output to a file and the dependency information to stdout for further analysis/processing. For example: g++ -E -MD -fdirectives-only -o test.ii test.cxx This will generate the dependency information to test.d (as per the documentation). While changing this behavior is probably unwise, one traditional (e.g., supported by -o) way to handle this is to recognize the special '-' file name as an instruction to write to stdout: g++ -E -MD -fdirectives-only -o test.ii -MF - test.cxx Currently this will create a file named '-'. The included patch changes this behavior to write to stdout. Note also that Clang has supported this from at least version 3.5. gcc: 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> * doc/cppopts.texi: Document '-' special value to -MF. gcc/c-family: 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> * c-opts.c (c_common_finish): Handle '-' special value to -MF. From-SVN: r249201
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions