This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
dwarf2out.c patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: dwarf2out.c patch
- From: Momchil Velikov <velco at fadata dot bg>
- Date: 14 Mar 2001 21:52:19 +0200
2001-03-14 Momchil Velikov <velco@fadata.bg>
* gcc/dwarf2out.c (struct dir_info): Removed unused member
``nbytes''.
(output_file_names): Removed references to the above ``nbytes''.
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.249
diff -u -d -p -r1.249 dwarf2out.c
--- dwarf2out.c 2001/03/10 16:33:56 1.249
+++ dwarf2out.c 2001/03/14 19:30:12
@@ -6003,8 +6003,6 @@ struct dir_info
char *path; /* Path including directory name. */
int length; /* Path length. */
int prefix; /* Index of directory entry which is a prefix. */
- int nbytes; /* Total number of bytes in all file names excluding
- paths. */
int count; /* Number of files in this directory. */
int dir_idx; /* Index of directory used as base. */
int used; /* Used in the end? */
@@ -6125,7 +6123,6 @@ output_file_names ()
dirs[0].path = files[1].path;
dirs[0].length = files[1].fname - files[1].path;
dirs[0].prefix = -1;
- dirs[0].nbytes = files[1].length - dirs[1].length + 1;
dirs[0].count = 1;
dirs[0].dir_idx = 0;
dirs[0].used = 0;
@@ -6139,7 +6136,6 @@ output_file_names ()
{
/* Same directory as last entry. */
files[i].dir_idx = ndirs - 1;
- dirs[ndirs - 1].nbytes += files[i].length - dirs[ndirs - 1].length + 1;
++dirs[ndirs - 1].count;
}
else
@@ -6151,7 +6147,6 @@ output_file_names ()
/* This is a new directory. */
dirs[ndirs].path = files[i].path;
dirs[ndirs].length = files[i].fname - files[i].path;
- dirs[ndirs].nbytes = files[i].length - dirs[i].length + 1;
dirs[ndirs].count = 1;
dirs[ndirs].dir_idx = ndirs;
dirs[ndirs].used = 0;
@@ -6188,7 +6183,6 @@ output_file_names ()
/* We don't have to set .path. */
dirs[max_idx].length = max_len;
- dirs[max_idx].nbytes = 0;
dirs[max_idx].count = 0;
dirs[max_idx].dir_idx = ndirs;
dirs[max_idx].used = 0;