From cdde47a670519664b10ceaa872f107a6a2c241fc Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 28 Nov 2015 16:26:01 +0000 Subject: [PATCH] Handle flinker-output in lto-wrapper 2015-11-28 Tom de Vries * lto-wrapper.c (run_gcc): Handle -flinker-output argument. From-SVN: r231033 --- gcc/ChangeLog | 4 ++++ gcc/lto-wrapper.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4ffa2fdebd..15cb1efd575 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-28 Tom de Vries + + * lto-wrapper.c (run_gcc): Handle -flinker-output argument. + 2015-11-27 Jonathan Wakely * doc/invoke.texi (Option Summary): Use negative form of diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index b9ac5356e02..e4772d1ada4 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -1096,7 +1096,10 @@ run_gcc (unsigned argc, char *argv[]) if (have_offload && !have_lto) { for (i = 1; i < argc; ++i) - if (strncmp (argv[i], "-fresolution=", sizeof ("-fresolution=") - 1)) + if (strncmp (argv[i], "-fresolution=", + sizeof ("-fresolution=") - 1) != 0 + && strncmp (argv[i], "-flinker-output=", + sizeof ("-flinker-output=") - 1) != 0) { char *out_file; /* Can be ".o" or ".so". */ -- 2.30.2