From 5a50f6bbedd904cd2d913f4d39646b3d99ed7ca4 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 10 Jan 2017 14:56:44 -0700 Subject: [PATCH] PR middle-end/78245 - missing -Wformat-length on an overflow of a dynamically allocated buffer gcc/testsuite/ChangeLog: PR middle-end/78245 * gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Add tests. gcc/ChangeLog: PR middle-end/78245 * gimple-ssa-sprintf.c (get_destination_size): Call {init,fini}object_sizes. * tree-object-size.c (addr_object_size): Adjust. (pass_through_call): Adjust. (pass_object_sizes::execute): Adjust. * tree-object-size.h (fini_object_sizes): Declare. From-SVN: r244294 --- gcc/ChangeLog | 10 ++++++++++ gcc/testsuite/ChangeLog | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff8dac4eddd..ff83dea5aae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -5,6 +5,16 @@ that we correctly handle column numbers greater than LINE_MAP_MAX_COLUMN_NUMBER. +2017-01-10 Martin Sebor + + PR middle-end/78245 + * gimple-ssa-sprintf.c (get_destination_size): Call + {init,fini}object_sizes. + * tree-object-size.c (addr_object_size): Adjust. + (pass_through_call): Adjust. + (pass_object_sizes::execute): Adjust. + * tree-object-size.h (fini_object_sizes): Declare. + 2017-01-10 Martin Sebor PR tree-optimization/78775 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 59a2fcfbef4..6fdfcacafeb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,11 @@ PR c++/77949 * g++.dg/diagnostic/pr77949.C: New test case. +2017-01-10 Martin Sebor + + PR middle-end/78245 + * gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Add tests. + 2017-01-10 Martin Sebor PR tree-optimization/78775 -- 2.30.2