From: Martin Sebor Date: Tue, 10 Jan 2017 21:56:44 +0000 (-0700) Subject: PR middle-end/78245 - missing -Wformat-length on an overflow of a dynamically allocat... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a50f6bbedd904cd2d913f4d39646b3d99ed7ca4;p=gcc.git 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 --- 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