re PR c/9163 (ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode and...
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 22 Dec 2003 18:16:56 +0000 (18:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 22 Dec 2003 18:16:56 +0000 (10:16 -0800)
commitaf3fbed11080efd038c3c6185b51891a72852b31
tree048f12d869c915b72cbee5312c2f7021f104637b
parent2d6c4025cc779a00702e96fb9e524a2b7e3a7511
re PR c/9163 (ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode and checking enabled)

2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/9163
        * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
        if it is non-null.
        (finish_function): Check for error_mark_node or null on DECL_RESULT and
        DECL_RESULT of fndecl.
        (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
        error_mark_node and not null.

2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>

       PR c/9163
       * gcc.dg/20031222-1.c: New test.

From-SVN: r74934
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20031222-1.c [new file with mode: 0644]