This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r128756 - in /branches/redhat/gcc-4_1-branch/gc...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 25 Sep 2007 10:22:37 -0000
- Subject: r128756 - in /branches/redhat/gcc-4_1-branch/gc...
Author: jakub
Date: Tue Sep 25 10:22:36 2007
New Revision: 128756
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128756
Log:
2007-09-07 Jakub Jelinek <jakub@redhat.com>
* tree.c (cp_cannot_inline_tree_fn): Don't mark varargs_function_p
as uninlinable.
* g++.dg/ext/va-arg-pack-1.C: New test.
* g++.dg/ext/va-arg-pack-2.C: New test.
2007-09-05 Jakub Jelinek <jakub@redhat.com>
* builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
* tree.h (CALL_EXPR_VA_ARG_PACK): Define.
* tree-inline.h (copy_body_data): Add call_expr field.
* tree-inline.c (expand_call_inline): Initialize call_expr.
(copy_bb): Append anonymous inline fn arguments to arguments
when inlining a CALL_EXPR_VA_ARG_PACK call.
* builtins.c (expand_builtin): Issue an error if
BUILT_IN_VA_ARG_PACK is seen during expand.
(fold_builtin_1): Don't fold calls with
__builtin_va_arg_pack () call as last argument.
* gimplify.c (gimplify_call_expr): If last argument to a vararg
function is __builtin_va_arg_pack (), decrease number of call
arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
* fold-const.c (fold): Don't fold CALL_EXPRs with
CALL_EXPR_VA_ARG_PACK bit set.
* expr.c (expand_expr_real_1): Issue an error if
CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
* tree-pretty-print.c (dump_generic_node): Handle printing
CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
* doc/extend.texi (__builtin_va_arg_pack): Document.
* gcc.c-torture/execute/va-arg-pack-1.c: New test.
* gcc.dg/va-arg-pack-1.c: New test.
* gcc.dg/va-arg-pack-1a.c: New test.
Added:
branches/redhat/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/va-arg-pack-1.C
branches/redhat/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/va-arg-pack-2.C
branches/redhat/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/va-arg-pack-1.c
branches/redhat/gcc-4_1-branch/gcc/testsuite/gcc.dg/va-arg-pack-1.c
branches/redhat/gcc-4_1-branch/gcc/testsuite/gcc.dg/va-arg-pack-1a.c
Modified:
branches/redhat/gcc-4_1-branch/gcc/ChangeLog
branches/redhat/gcc-4_1-branch/gcc/builtins.c
branches/redhat/gcc-4_1-branch/gcc/builtins.def
branches/redhat/gcc-4_1-branch/gcc/cp/ChangeLog
branches/redhat/gcc-4_1-branch/gcc/cp/tree.c
branches/redhat/gcc-4_1-branch/gcc/doc/extend.texi
branches/redhat/gcc-4_1-branch/gcc/expr.c
branches/redhat/gcc-4_1-branch/gcc/fold-const.c
branches/redhat/gcc-4_1-branch/gcc/gimplify.c
branches/redhat/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/redhat/gcc-4_1-branch/gcc/tree-inline.c
branches/redhat/gcc-4_1-branch/gcc/tree-inline.h
branches/redhat/gcc-4_1-branch/gcc/tree-pretty-print.c
branches/redhat/gcc-4_1-branch/gcc/tree.h