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 c/78408] C loop initial declarations generate wrong code


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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 16 15:57:43 2016
New Revision: 243753

URL: https://gcc.gnu.org/viewcvs?rev=243753&root=gcc&view=rev
Log:
        PR c/78408
        * tree-ssa-ccp.c: Include tree-dfa.h.
        (optimize_memcpy): New function.
        (pass_fold_builtins::execute): Use it.  Remove useless conditional
        break after BUILT_IN_VA_*.

        * gcc.dg/pr78408-1.c: New test.
        * gcc.dg/pr78408-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr78408-1.c
    trunk/gcc/testsuite/gcc.dg/pr78408-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sanopt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c

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