public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/flto=jobserver-N-fallback)] LTO: fallback to -flto=N if -flto=jobserver does not work.
@ 2021-03-12 12:37 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-03-12 12:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ee40e12df7b6a636d2d146ddf91af630bef79820
commit ee40e12df7b6a636d2d146ddf91af630bef79820
Author: Martin Liska <mliska@suse.cz>
Date: Fri Mar 12 13:37:06 2021 +0100
LTO: fallback to -flto=N if -flto=jobserver does not work.
Diff:
---
gcc/lto-wrapper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 03a5922f8ea..0b626d7c811 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1585,8 +1585,9 @@ run_gcc (unsigned argc, char *argv[])
if (jobserver && jobserver_error != NULL)
{
warning (0, jobserver_error);
- parallel = 0;
+ /* Fall back to auto parallelism. */
jobserver = 0;
+ auto_parallel = 1;
}
else if (!jobserver && jobserver_error == NULL)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/users/marxin/heads/flto=jobserver-N-fallback)] LTO: fallback to -flto=N if -flto=jobserver does not work.
@ 2021-03-18 15:59 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-03-18 15:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1332442808a7668bb9ba548325be4c9b9d1aa3a9
commit 1332442808a7668bb9ba548325be4c9b9d1aa3a9
Author: Martin Liska <mliska@suse.cz>
Date: Fri Mar 12 13:37:06 2021 +0100
LTO: fallback to -flto=N if -flto=jobserver does not work.
gcc/ChangeLog:
* lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
makeserver cannot be detected, then use -flto=N fallback.
Diff:
---
gcc/lto-wrapper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 03a5922f8ea..0b626d7c811 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1585,8 +1585,9 @@ run_gcc (unsigned argc, char *argv[])
if (jobserver && jobserver_error != NULL)
{
warning (0, jobserver_error);
- parallel = 0;
+ /* Fall back to auto parallelism. */
jobserver = 0;
+ auto_parallel = 1;
}
else if (!jobserver && jobserver_error == NULL)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/users/marxin/heads/flto=jobserver-N-fallback)] LTO: fallback to -flto=N if -flto=jobserver does not work.
@ 2021-03-18 15:59 Martin Liska
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liska @ 2021-03-18 15:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a7c4b43fa9930bb757f4268707fd5cec6b489517
commit a7c4b43fa9930bb757f4268707fd5cec6b489517
Author: Martin Liska <mliska@suse.cz>
Date: Fri Mar 12 13:37:06 2021 +0100
LTO: fallback to -flto=N if -flto=jobserver does not work.
Diff:
---
gcc/lto-wrapper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 03a5922f8ea..0b626d7c811 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1585,8 +1585,9 @@ run_gcc (unsigned argc, char *argv[])
if (jobserver && jobserver_error != NULL)
{
warning (0, jobserver_error);
- parallel = 0;
+ /* Fall back to auto parallelism. */
jobserver = 0;
+ auto_parallel = 1;
}
else if (!jobserver && jobserver_error == NULL)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-18 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 12:37 [gcc(refs/users/marxin/heads/flto=jobserver-N-fallback)] LTO: fallback to -flto=N if -flto=jobserver does not work Martin Liska
2021-03-18 15:59 Martin Liska
2021-03-18 15:59 Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).