diff options
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c-family/c-format.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 8d1b47f..85582c9 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,10 @@ +2015-07-16 Martin Liska <mliska@suse.cz> + + * c-format.c (static void check_format_info_main): Use + object_allocator instead of pool_allocator. + (check_format_arg): Likewise. + (check_format_info_main): Likewise. + 2015-07-15 Andrew MacLeod <amacleod@redhat.com> * c-opts.c: Remove multiline #include comment. diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index 1dac985..4bc3147 100644 --- a/gcc/c-family/c-format.c +++ b/gcc/c-family/c-format.c @@ -1025,7 +1025,7 @@ static void check_format_info_main (format_check_results *, function_format_info *, const char *, int, tree, unsigned HOST_WIDE_INT, - pool_allocator<format_wanted_type> &); + object_allocator<format_wanted_type> &); static void init_dollar_format_checking (int, tree); static int maybe_read_dollar_number (const char **, int, @@ -1687,7 +1687,8 @@ check_format_arg (void *ctx, tree format_tree, will decrement it if it finds there are extra arguments, but this way need not adjust it for every return. */ res->number_other++; - pool_allocator <format_wanted_type> fwt_pool ("format_wanted_type pool", 10); + object_allocator <format_wanted_type> fwt_pool ("format_wanted_type pool", + 10); check_format_info_main (res, info, format_chars, format_length, params, arg_num, fwt_pool); } @@ -1705,7 +1706,7 @@ check_format_info_main (format_check_results *res, function_format_info *info, const char *format_chars, int format_length, tree params, unsigned HOST_WIDE_INT arg_num, - pool_allocator<format_wanted_type> &fwt_pool) + object_allocator <format_wanted_type> &fwt_pool) { const char *orig_format_chars = format_chars; tree first_fillin_param = params; |