From: Andrew Pinski Date: Mon, 11 Oct 2004 12:57:09 +0000 (+0000) Subject: gimplify.c (gimple_push_condition): Make sure that we don't have any saved condition... X-Git-Tag: releases/gcc-4.0.0~4138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d775bc45ed5f595f432deebf542d772d27399018;p=thirdparty%2Fgcc.git gimplify.c (gimple_push_condition): Make sure that we don't have any saved condition cleanup if... 2004-10-11 Andrew Pinski * gimplify.c (gimple_push_condition): Make sure that we don't have any saved condition cleanup if we were at the top level. From-SVN: r88877 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf1f125340cd..5b3d9d16ae9e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-11 Andrew Pinski + + * gimplify.c (gimple_push_condition): Make sure that we don't + have any saved condition cleanup if we were at the top level. + 2004-10-11 Richard Sandiford * config/frv/frv.md (*adddi3_internal): Change name to... diff --git a/gcc/gimplify.c b/gcc/gimplify.c index ca233617b897..51a123f325fb 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -191,6 +191,10 @@ gimple_conditional_context (void) static void gimple_push_condition (void) { +#ifdef ENABLE_CHECKING + if (gimplify_ctxp->conditions == 0) + gcc_assert (!gimplify_ctxp->conditional_cleanups); +#endif ++(gimplify_ctxp->conditions); }