OSDN Git Service

* tradcpp.c (output_line_command): Mark system headers as such in
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Nov 2000 15:55:08 +0000 (15:55 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Nov 2000 15:55:08 +0000 (15:55 +0000)
`line' commands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37616 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tradcpp.c

index 1cfd802..0f4aecd 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * tradcpp.c (output_line_command): Mark system headers as such in
+       `line' commands.
+
 2000-11-21  Jakub Jelinek  <jakub@redhat.com>
 
        * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
index 1117748..5b23e5c 100644 (file)
@@ -3535,6 +3535,8 @@ output_line_command (ip, op, conditional, file_change)
   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);