aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-09-19 17:28:46 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-09-19 17:28:46 +0000
commit6f3d20a02285d63fa46862f6fffda3153956f246 (patch)
tree7b83cda165780e27d00d94e39359d2d24d04cccf /gcc
parentafc6898e108fcbf573a93371a2ad99481a0a1867 (diff)
downloadgcc-6f3d20a02285d63fa46862f6fffda3153956f246.zip
gcc-6f3d20a02285d63fa46862f6fffda3153956f246.tar.gz
gcc-6f3d20a02285d63fa46862f6fffda3153956f246.tar.bz2
cppfiles.c (read_include_file): Take no special action for zero-length files.
* cppfiles.c (read_include_file): Take no special action for zero-length files. From-SVN: r36539
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cppfiles.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 148ec20..26a2801 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
+
+ * cppfiles.c (read_include_file): Take no special action for
+ zero-length files.
+
2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
* final.c (insn_current_reference_address): Use INSN_SHUID of seq
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index ffb46d2..697ea1b 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -331,12 +331,6 @@ read_include_file (pfile, inc)
if (count < 0)
goto perror_fail;
- if (offset == 0)
- {
- free (buf);
- return 0;
- }
-
if (offset < size)
buf = xrealloc (buf, offset);
inc->st.st_size = offset;