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]

Re: cpp breakage in gcc cvs head


Per Bothner <per@bothner.com> wrote:
>
> 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.

It works as desired for this particular scenario, thanks.

>  --- 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]