This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.)


  Dr. Ulrich Weigand

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]