This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: some gimplification cleanups
- From: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- To: rth at twiddle dot net
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Jun 2004 21:28:18 +0200 (CEST)
- Subject: Re: some gimplification cleanups
Richard Henderson wrote:
> * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.
> Use gimplify_and_add.
> * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt.
> * gimplify.c (build_and_jump, gimplify_exit_expr,
> gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup,
> gimplify_stmt, gimplify_expr): Likewise.
> (shortcut_cond_expr): Handle NULL arms of COND_EXPR.
> (gimplify_statement_list): Remove NULL entries.
> (gimplify_to_stmt_list): Handle NULL results.
> (gimplify_type_sizes): Add list_p argument.
> (gimplify_one_sizepos): Don't use internal pre/post queue.
> * tree-gimple.h (gimplify_type_sizes): Update.
This causes compiler crashes due to a NULL DECL_SAVED_TREE being passed
from gimplify_function_tree to gimplify_body. (This happens in the case
of an empty __static_initialization_and_destruction_0 function.)
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de