Handle flinker-output in lto-wrapper

2015-11-28  Tom de Vries  <tom@codesourcery.com>

	* lto-wrapper.c (run_gcc): Handle -flinker-output argument.

From-SVN: r231033
This commit is contained in:
Tom de Vries 2015-11-28 16:26:01 +00:00 committed by Tom de Vries
parent c14826cfc9
commit cdde47a670
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2015-11-28 Tom de Vries <tom@codesourcery.com>
* lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2015-11-27 Jonathan Wakely <jwakely@redhat.com>
* doc/invoke.texi (Option Summary): Use negative form of

View file

@ -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". */