summaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-31 10:38:33 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-31 10:38:33 +0000
commit5e9ac72eade28131fc1c6d3b344ac0a1ea866ce7 (patch)
tree9cef18d8274cc89fa233fab49705548a71dd886d /gcc/lto-wrapper.c
parent3c9467e19779338efb347a4a27df53d016adb82c (diff)
downloadgcc-5e9ac72eade28131fc1c6d3b344ac0a1ea866ce7.tar.gz
* diagnostic.c (build_message_string): Use xvasprintf.
* final.c (output_operand_lossage): Use xvasprintf and xasprintf. * lto-wrapper.c (merge_and_complain): Use xasprintf. * targhooks.c (pch_option_mismatch): Ditto. * tree-ssa-structalias.c (create_function_info_for): Ditto. (create_variable_info_for_1): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219122 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index f75c0dc4378..f7118760d94 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -371,7 +371,7 @@ merge_and_complain (struct cl_decoded_option **decoded_options,
}
(*decoded_options)[j].opt_index = OPT_O;
char *tem;
- asprintf (&tem, "-O%d", level);
+ tem = xasprintf ("-O%d", level);
(*decoded_options)[j].arg = &tem[2];
(*decoded_options)[j].canonical_option[0] = tem;
(*decoded_options)[j].value = 1;