This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r128757 - 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:24:16 -0000
- Subject: r128757 - in /branches/redhat/gcc-4_1-branch/gc...
Author: jakub
Date: Tue Sep 25 10:24:16 2007
New Revision: 128757
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128757
Log:
* builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
* builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
error if __builtin_va_arg_pack_len () wasn't optimized out during
inlining.
* tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
with the number of inline's anonymous arguments.
* doc/extend.texi: Document __builtin_va_arg_pack_len ().
* gcc.dg/va-arg-pack-len-1.c: New test.
* g++.dg/ext/va-arg-pack-len-1.C: New test.
Added:
branches/redhat/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/va-arg-pack-len-1.C
branches/redhat/gcc-4_1-branch/gcc/testsuite/gcc.dg/va-arg-pack-len-1.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/doc/extend.texi
branches/redhat/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/redhat/gcc-4_1-branch/gcc/tree-inline.c