]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-opts.c (c_common_post_options): Don't emit working directory in cpp output if ...
authorPer Bothner <per@bothner.com>
Tue, 10 Feb 2004 18:18:57 +0000 (10:18 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 10 Feb 2004 18:18:57 +0000 (10:18 -0800)
* c-opts.c (c_common_post_options):   Don't emit working directory
in cpp output if -P was specified.

From-SVN: r77607

gcc/ChangeLog
gcc/c-opts.c

index c235d08ef5002eb68e322259f17e539d4b000e38..ba6a78534f825285887157677925b5579c01fbf8 100644 (file)
@@ -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
index 3f773be18d99eb558462328e2c58b3061f834512..37d2ac4639dd8e8e8d2d879e6f2d789bd7ff309a 100644 (file)
@@ -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;