diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 18:18:57 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 18:18:57 +0000 |
commit | c796cff1e550e38db24d6716f678a6bd44e80487 (patch) | |
tree | 3fba51bf06943405ec6e4753a348c7cf111f3d85 /gcc/c-opts.c | |
parent | 05a2aab51633943f42586e2bfe03ef48ee6d4ab2 (diff) | |
download | gcc-c796cff1e550e38db24d6716f678a6bd44e80487.tar.gz |
* c-opts.c (c_common_post_options): Don't emit working directory
in cpp output if -P was specified.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 3f773be18d9..37d2ac4639d 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1162,7 +1162,8 @@ c_common_post_options (const char **pfilename) if (this_input_filename == NULL) return true; - if (flag_preprocess_only && flag_working_directory) + if (flag_working_directory + && flag_preprocess_only && ! flag_no_line_commands) pp_dir_change (parse_in, get_src_pwd ()); return flag_preprocess_only; |