gcc -traditional doesn't pass recognition of system headers to cc1
Neil Booth
neilb@earthling.net
Mon Nov 20 14:15:00 GMT 2000
Kaveh R. Ghazi wrote:-
> Minimal manual testing shows the following patch does what I want.
> Assuming full bootstrap & testsuite goes well and it passes a sanity
> check, okay to install?
>
Yes, that's fine, thanks!
Neil.
> 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * tradcpp.c (output_line_command): Mark system headers as such in
> `line' commands.
>
> diff -rup orig/egcs-CVS20001120/gcc/tradcpp.c egcs-CVS20001120/gcc/tradcpp.c
> --- orig/egcs-CVS20001120/gcc/tradcpp.c Sun Nov 19 08:12:41 2000
> +++ egcs-CVS20001120/gcc/tradcpp.c Mon Nov 20 16:44:45 2000
> @@ -3535,6 +3535,8 @@ output_line_command (ip, op, conditional
> sprintf (line_cmd_buf, "# %d \"%s\"", ip->lineno, ip->fname);
> if (file_change != same_file)
> strcat (line_cmd_buf, file_change == enter_file ? " 1" : " 2");
> + if (system_include_depth > 0)
> + strcat (line_cmd_buf, " 3");
> len = strlen (line_cmd_buf);
> line_cmd_buf[len++] = '\n';
> check_expand (op, len + 1);
More information about the Gcc-bugs
mailing list