Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit 33d3750

Browse files
committed
[8-2018-q4-major] Patch gcc to fix Windows paths with spaces and LTO
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89249 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 1187265 commit 33d3750

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/src/gcc/gcc/gcc.c b/src/gcc/gcc/gcc.c
2+
index a716f70..af47faf 100644
3+
--- a/src/gcc/gcc/gcc.c
4+
+++ b/src/gcc/gcc/gcc.c
5+
@@ -7738,7 +7738,11 @@ driver::maybe_putenv_COLLECT_LTO_WRAPPER () const
6+
X_OK, false);
7+
if (lto_wrapper_file)
8+
{
9+
+#if defined (__MINGW32__)
10+
+ // Win32 fails to CreateProcess if spaces are escaped.
11+
+#else
12+
lto_wrapper_file = convert_white_space (lto_wrapper_file);
13+
+#endif
14+
lto_wrapper_spec = lto_wrapper_file;
15+
obstack_init (&collect_obstack);
16+
obstack_grow (&collect_obstack, "COLLECT_LTO_WRAPPER=",

0 commit comments

Comments
 (0)