This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cpp breakage in gcc cvs head
- From: Per Bothner <per at bothner dot com>
- To: Andrew Morton <akpm at osdl dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 08 Feb 2004 18:28:59 -0800
- Subject: Re: cpp breakage in gcc cvs head
- References: <20040208025825.4da04b3e.akpm@osdl.org>
Andrew Morton wrote:
Note that current gcc-cvs emits the
# 1 "/usr/src/25//"
line at the top of the output whereas gcc-3.3 does not.
Fixable, please?
Please try the attached patch.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
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;