-
- Downloads
builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
* 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_call_expr, fold_builtin_call_array): Don't fold CALL_EXPR_VA_ARG_PACK CALL_EXPRs or 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. * 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. From-SVN: r128150
Showing
- gcc/ChangeLog 72 additions, 50 deletionsgcc/ChangeLog
- gcc/builtins.c 38 additions, 3 deletionsgcc/builtins.c
- gcc/builtins.def 1 addition, 0 deletionsgcc/builtins.def
- gcc/doc/extend.texi 26 additions, 0 deletionsgcc/doc/extend.texi
- gcc/expr.c 4 additions, 0 deletionsgcc/expr.c
- gcc/gimplify.c 44 additions, 2 deletionsgcc/gimplify.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/execute/va-arg-pack-1.c 143 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/va-arg-pack-1.c
- gcc/testsuite/gcc.dg/va-arg-pack-1.c 52 additions, 0 deletionsgcc/testsuite/gcc.dg/va-arg-pack-1.c
- gcc/tree-inline.c 52 additions, 1 deletiongcc/tree-inline.c
- gcc/tree-inline.h 4 additions, 0 deletionsgcc/tree-inline.h
- gcc/tree-pretty-print.c 9 additions, 0 deletionsgcc/tree-pretty-print.c
- gcc/tree.h 7 additions, 0 deletionsgcc/tree.h
Loading
Please register or sign in to comment