Skip to content

Commit

Permalink
Merge pull request #428 from Andne/pch-patch
Browse files Browse the repository at this point in the history
Restore 4.8 PCH patch
  • Loading branch information
niXman committed Mar 26, 2016
2 parents 3570467 + ac9fa5e commit 9b58312
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions patches/gcc/gcc-4.8-fix-PCH.patch
@@ -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;


0 comments on commit 9b58312

Please sign in to comment.