From: Richard Kenner Date: Wed, 11 May 1994 20:23:11 +0000 (-0400) Subject: (expand_builtin_apply): Put new function usage data at end of any data X-Git-Tag: misc/cutover-egcs-0~6669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d100794d0665f1b78d81faadbd967e6a45e9a49;p=thirdparty%2Fgcc.git (expand_builtin_apply): Put new function usage data at end of any data already there. From-SVN: r7274 --- diff --git a/gcc/expr.c b/gcc/expr.c index 2d31f9eeb800..244a84c57eec 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -7817,8 +7817,20 @@ expand_builtin_apply (function, arguments, argsize) 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; /* Restore the stack. */ emit_stack_restore (SAVE_BLOCK, old_stack_level, NULL_RTX);