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 middle-end/52691] [4.7/4.8 Regression] va_start to builtin_next_arg optimization lost


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52691

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-28 14:49:40 UTC ---
Author: jakub
Date: Wed Mar 28 14:49:26 2012
New Revision: 185918

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185918
Log:
    PR middle-end/52691
    * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
    __builtin_va_start to __builtin_next_arg if the latter is
    builtin_decl_explicit_p rather than when it is not.

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

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr52691.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/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]