From: Ulrich Weigand Date: Wed, 3 Dec 2014 21:59:10 +0000 (+0000) Subject: re PR rtl-optimization/64010 ([msp430-elf] struct function dereference clobbers param... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc04abff10076fe8ce25fa765032b1cbfa0324e3;p=gcc.git re PR rtl-optimization/64010 ([msp430-elf] struct function dereference clobbers parameter passed to function) PR rtl-optimization/64010 * reload.c (push_reload): Before reusing a register contained in an operand as input reload register, ensure that it is not used in CALL_INSN_FUNCTION_USAGE. From-SVN: r218335 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fabd3909dce..0fac9a2b978 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-12-03 Ulrich Weigand + + PR rtl-optimization/64010 + * reload.c (push_reload): Before reusing a register contained + in an operand as input reload register, ensure that it is not + used in CALL_INSN_FUNCTION_USAGE. + 2014-12-03 Ulrich Drepper * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first diff --git a/gcc/reload.c b/gcc/reload.c index 9ef2c89887a..3f5abb84878 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -1625,6 +1625,7 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, end_hard_regno (rel_mode, regno), PATTERN (this_insn), inloc) + && ! find_reg_fusage (this_insn, USE, XEXP (note, 0)) /* If this is also an output reload, IN cannot be used as the reload register if it is set in this insn unless IN is also OUT. */