-
- Downloads
re PR c/5105 (compound literal patch broken with inlining)
* c-common.def (COMPOUND_LITERAL_EXPR): Contain a DECL_STMT, not a DECL directly. * c-common.h (COMPOUND_LITERAL_EXPR_DECL_STMT): New. (COMPOUND_LITERAL_EXPR_DECL): Adjust definition. * c-decl.c (build_compound_literal): Put the decl inside a DECL_STMT. * doc/c-tree.texi (COMPOUND_LITERAL_EXPR): Update documentation. Fixes PR c/5105. testsuite: * gcc.c-torture/compile/20011217-1.c: New test. From-SVN: r48085
Showing
- gcc/ChangeLog 11 additions, 0 deletionsgcc/ChangeLog
- gcc/c-common.def 4 additions, 3 deletionsgcc/c-common.def
- gcc/c-common.h 4 additions, 2 deletionsgcc/c-common.h
- gcc/c-decl.c 3 additions, 1 deletiongcc/c-decl.c
- gcc/doc/c-tree.texi 5 additions, 2 deletionsgcc/doc/c-tree.texi
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/compile/20011217-1.c 20 additions, 0 deletionsgcc/testsuite/gcc.c-torture/compile/20011217-1.c
Loading
Please register or sign in to comment