From: Richard Kenner Date: Wed, 11 May 1994 20:22:02 +0000 (-0400) Subject: (emit_call_1): Put new function usage data at end of any data already X-Git-Tag: misc/cutover-egcs-0~6670 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59e60a78f6e12dabf8b71a44465e9b91422ce3b;p=thirdparty%2Fgcc.git (emit_call_1): Put new function usage data at end of any data already there. From-SVN: r7273 --- diff --git a/gcc/calls.c b/gcc/calls.c index 4ca048337030..99c8a602bbb6 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -408,8 +408,20 @@ emit_call_1 (funexp, funtype, stack_size, struct_value_size, next_arg_reg, if (! call_insn) abort (); - /* Put the register usage information on the CALL. */ - CALL_INSN_FUNCTION_USAGE (call_insn) = call_fusage; + /* Put the register usage information on the CALL. If there is already + some usage information, put ours at the end. */ + if (CALL_INSN_FUNCTION_USAGE (call_insn)) + { + rtx link; + + for (link = CALL_INSN_FUNCTION_USAGE (call_insn); XEXP (link, 1) != 0; + link = XEXP (link, 1)) + ; + + XEXP (link, 1) = call_fusage; + } + else + CALL_INSN_FUNCTION_USAGE (call_insn) = call_fusage; /* If this is a const call, then set the insn's unchanging bit. */ if (is_const)