https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79800
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Wed Mar 15 04:31:27 2017 New Revision: 246151 URL: https://gcc.gnu.org/viewcvs?rev=246151&root=gcc&view=rev Log: PR tree-optimization/79800 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle precision in negative-positive range. (format_floating): Call non-const overload with adjusted precision. PR tree-optimization/79800 * gcc.dg/tree-ssa/builtin-sprintf-warn-15.c: Add test cases. * gcc.dg/tree-ssa/pr79800.c: New test. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/pr79800.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-sprintf.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-15.c