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/diagnostic.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/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 7cbdb79..066cebb 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -70,7 +70,7 @@ build_message_string (const char *msg, ...) va_list ap; va_start (ap, msg); - vasprintf (&str, msg, ap); + str = xvasprintf (msg, ap); va_end (ap); return str; |