mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-31 02:24:40 +08:00
* cppfiles.c (read_include_file): Add comment.
From-SVN: r47369
This commit is contained in:
parent
773105be40
commit
07e96fc688
@ -1,3 +1,7 @@
|
||||
2001-11-27 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* cppfiles.c (read_include_file): Add comment.
|
||||
|
||||
2001-11-26 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
|
||||
|
@ -382,6 +382,11 @@ read_include_file (pfile, inc)
|
||||
if (pagesize == -1)
|
||||
pagesize = getpagesize ();
|
||||
|
||||
/* Use mmap if the file is big enough to be worth it (controlled
|
||||
by MMAP_THRESHOLD) and if we can safely count on there being
|
||||
at least one readable NUL byte after the end of the file's
|
||||
contents. This is true for all tested operating systems when
|
||||
the file size is not an exact multiple of the page size. */
|
||||
if (size / pagesize >= MMAP_THRESHOLD
|
||||
&& (size % pagesize) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user