diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2014-12-31 11:38:33 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2014-12-31 11:38:33 +0100 |
commit | 582f770b4553764cf1b6f506ca7a5388b575086e (patch) | |
tree | 9cef18d8274cc89fa233fab49705548a71dd886d /gcc/lto-wrapper.c | |
parent | ec5f010299aeae689871053d9f2164a9ea7f3a87 (diff) | |
download | gcc-582f770b4553764cf1b6f506ca7a5388b575086e.zip gcc-582f770b4553764cf1b6f506ca7a5388b575086e.tar.gz gcc-582f770b4553764cf1b6f506ca7a5388b575086e.tar.bz2 |
diagnostic.c (build_message_string): Use xvasprintf.
* 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.
From-SVN: r219122
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index f75c0dc..f711876 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; |