From 6f3d20a02285d63fa46862f6fffda3153956f246 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 19 Sep 2000 17:28:46 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cppfiles.c | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 148ec20d2d6..26a280150e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue 19-Sep-2000 18:26:57 BST Neil Booth + + * cppfiles.c (read_include_file): Take no special action for + zero-length files. + 2000-09-19 Bernd Schmidt * final.c (insn_current_reference_address): Use INSN_SHUID of seq diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index ffb46d26b1f..697ea1b56f5 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; -- 2.30.2