summaryrefslogtreecommitdiffstats
path: root/lto-plugin
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-04-21 16:52:17 +0200
committerMartin Liska <mliska@suse.cz>2021-04-21 16:53:39 +0200
commite9fc9d075f303b50c77c7b497b2982fe6dc7f5c1 (patch)
tree5efd91d4f4b87fdad8731d5716d392b2f1293e60 /lto-plugin
parentaarch64: Always use .init/.fini_array for GNU/Linux (diff)
downloadgcc-e9fc9d075f303b50c77c7b497b2982fe6dc7f5c1.tar.gz
gcc-e9fc9d075f303b50c77c7b497b2982fe6dc7f5c1.tar.bz2
gcc-e9fc9d075f303b50c77c7b497b2982fe6dc7f5c1.tar.xz
Fix clang warning (-Wstring-plus-int)
This fixes: lto-plugin.c:642:7: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] lto-plugin/ChangeLog: * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/lto-plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 32478f070e8..4e90ce03ade 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -636,10 +636,10 @@ exec_lto_wrapper (char *argv[])
636 636
637 /* Write argv to a file to avoid a command line that is too long 637 /* Write argv to a file to avoid a command line that is too long
638 Save the file locally on save-temps. */ 638 Save the file locally on save-temps. */
639 const char *suffix = ".lto_wrapper_args";
640 suffix += skip_in_suffix;
639 if (save_temps && link_output_name) 641 if (save_temps && link_output_name)
640 arguments_file_name = concat (link_output_name, 642 arguments_file_name = concat (link_output_name, suffix, NULL);
641 ".lto_wrapper_args"
642 + skip_in_suffix, NULL);
643 else 643 else
644 arguments_file_name = make_temp_file (".lto_wrapper_args"); 644 arguments_file_name = make_temp_file (".lto_wrapper_args");
645 check (arguments_file_name, LDPL_FATAL, 645 check (arguments_file_name, LDPL_FATAL,