This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: for cpp breakage in gcc cvs head


I checked in the attached patch to both mainline and 3.4.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/



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. 

Index: c-opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v
retrieving revision 1.101
diff -u -p -r1.101 c-opts.c
--- c-opts.c	8 Feb 2004 01:59:03 -0000	1.101
+++ c-opts.c	9 Feb 2004 02:27:19 -0000
@@ -1162,7 +1162,8 @@ c_common_post_options (const char **pfil
   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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]