From: Jakub Jelinek Date: Mon, 15 May 2000 16:58:37 +0000 (+0200) Subject: calls.c (expand_call): Move expand_start_target_temps call after start_sequence(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8d254e64d0d10553df34b4d9bf67fd003730111;p=gcc.git calls.c (expand_call): Move expand_start_target_temps call after start_sequence(). * calls.c (expand_call): Move expand_start_target_temps call after start_sequence(). From-SVN: r33911 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0aa443cd4c..ae88e9ca12c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-05-15 Jakub Jelinek + + * calls.c (expand_call): Move expand_start_target_temps call after + start_sequence(). + 2000-05-15 Neil Booth * cpphash.c (trad_stringify, warn_trad_stringify, diff --git a/gcc/calls.c b/gcc/calls.c index 5c12ccfb8a4..ee4b6786f68 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2341,12 +2341,6 @@ expand_call (exp, target, ignore) only one of the alternates. */ emit_queue (); - /* We know at this point that there are not currently any - pending cleanups. If, however, in the process of evaluating - the arguments we were to create some, we'll need to be - able to get rid of them. */ - expand_start_target_temps (); - /* State variables we need to save and restore between iterations. */ save_pending_stack_adjust = pending_stack_adjust; @@ -2368,6 +2362,15 @@ expand_call (exp, target, ignore) sibcall_failure instead of continuing the loop. */ start_sequence (); + if (pass == 0) + { + /* We know at this point that there are not currently any + pending cleanups. If, however, in the process of evaluating + the arguments we were to create some, we'll need to be + able to get rid of them. */ + expand_start_target_temps (); + } + /* When calling a const function, we must pop the stack args right away, so that the pop is deleted or moved with the call. */ if (flags & (ECF_CONST | ECF_PURE))