Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #428 from Andne/pch-patch
Restore 4.8 PCH patch
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Index: gcc/config/i386/host-mingw32.c | ||
=================================================================== | ||
--- gcc/config/i386/host-mingw32.c (revision 225106) | ||
+++ gcc/config/i386/host-mingw32.c (working copy) | ||
@@ -42,9 +42,6 @@ | ||
|
||
static inline void w32_error(const char*, const char*, int, const char*); | ||
|
||
-/* FIXME: Is this big enough? */ | ||
-static const size_t pch_VA_max_size = 128 * 1024 * 1024; | ||
- | ||
/* Granularity for reserving address space. */ | ||
static size_t va_granularity = 0x10000; | ||
|
||
@@ -148,7 +145,7 @@ | ||
|
||
/* Offset must be also be a multiple of allocation granularity for | ||
this to work. We can't change the offset. */ | ||
- if ((offset & (va_granularity - 1)) != 0 || size > pch_VA_max_size) | ||
+ if ((offset & (va_granularity - 1)) != 0) | ||
return -1; | ||
|
||
|