mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 02:50:27 +08:00
c-opts.c (c_common_post_options): Don't emit working directory in cpp output if -P was specified.
* c-opts.c (c_common_post_options): Don't emit working directory in cpp output if -P was specified. From-SVN: r77607
This commit is contained in:
parent
5e673ed855
commit
8a4baa83a1
@ -1,3 +1,8 @@
|
||||
2004-02-10 Per Bothner <per@bothner.com>
|
||||
|
||||
* c-opts.c (c_common_post_options): Don't emit working directory
|
||||
in cpp output if -P was specified.
|
||||
|
||||
2004-02-10 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR c/14092
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user