]> gcc.gnu.org Git - gcc.git/commitdiff
cppfiles.c (read_include_file): Take no special action for zero-length files.
authorNeil Booth <neilb@earthling.net>
Tue, 19 Sep 2000 17:28:46 +0000 (17:28 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 19 Sep 2000 17:28:46 +0000 (17:28 +0000)
        * cppfiles.c (read_include_file): Take no special action for
        zero-length files.

From-SVN: r36539

gcc/ChangeLog
gcc/cppfiles.c

index 148ec20d2d607baa995213024677d01b490f62c9..26a280150e71b797a074accd8203a6896d585bd4 100644 (file)
@@ -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
index ffb46d26b1f8ceebfcfb04defd51c571bd25739d..697ea1b56f5dbeee920026adc4e439a7ab78bae5 100644 (file)
@@ -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;
This page took 0.083356 seconds and 5 git commands to generate.