This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/78965] [7 Regression] Invalid -fprintf-return-value optimization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78965

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan  3 07:23:11 2017
New Revision: 244014

URL: https://gcc.gnu.org/viewcvs?rev=244014&root=gcc&view=rev
Log:
        PR tree-optimization/78965
        * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
        Change first argument from const call_info & to call_info &.  For %n
        set info.nowrite to false.

        * gcc.dg/pr78965.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr78965.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-sprintf.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]