aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-02-10 10:18:57 -0800
committerPer Bothner <bothner@gcc.gnu.org>2004-02-10 10:18:57 -0800
commit8a4baa83a1ed5cc8fb7089263c768398a4b92f64 (patch)
tree3fba51bf06943405ec6e4753a348c7cf111f3d85 /gcc
parent5e673ed855a04d3e3b5f7622f2d45aab608605b6 (diff)
downloadgcc-8a4baa83a1ed5cc8fb7089263c768398a4b92f64.zip
gcc-8a4baa83a1ed5cc8fb7089263c768398a4b92f64.tar.gz
gcc-8a4baa83a1ed5cc8fb7089263c768398a4b92f64.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-opts.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c235d08..ba6a785 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 3f773be..37d2ac4 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;