Commit de95483d by Ulrich Weigand

re PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X…

re PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X (subreg:X (reg:Y) 0) (const_int))))

	PR rtl-optimization/49114
	* reload.c (push_reload): Define in_subreg_loc and out_subreg_loc
	only if LIMIT_RELOAD_CLASS to avoid -Werror build breaks.

From-SVN: r175652
parent 931050d0
...@@ -923,7 +923,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, ...@@ -923,7 +923,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc,
int i; int i;
int dont_share = 0; int dont_share = 0;
int dont_remove_subreg = 0; int dont_remove_subreg = 0;
#ifdef LIMIT_RELOAD_CLASS
rtx *in_subreg_loc = 0, *out_subreg_loc = 0; rtx *in_subreg_loc = 0, *out_subreg_loc = 0;
#endif
int secondary_in_reload = -1, secondary_out_reload = -1; int secondary_in_reload = -1, secondary_out_reload = -1;
enum insn_code secondary_in_icode = CODE_FOR_nothing; enum insn_code secondary_in_icode = CODE_FOR_nothing;
enum insn_code secondary_out_icode = CODE_FOR_nothing; enum insn_code secondary_out_icode = CODE_FOR_nothing;
...@@ -1068,7 +1070,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, ...@@ -1068,7 +1070,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc,
#endif #endif
)) ))
{ {
#ifdef LIMIT_RELOAD_CLASS
in_subreg_loc = inloc; in_subreg_loc = inloc;
#endif
inloc = &SUBREG_REG (in); inloc = &SUBREG_REG (in);
in = *inloc; in = *inloc;
#if ! defined (LOAD_EXTEND_OP) && ! defined (WORD_REGISTER_OPERATIONS) #if ! defined (LOAD_EXTEND_OP) && ! defined (WORD_REGISTER_OPERATIONS)
...@@ -1163,7 +1167,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, ...@@ -1163,7 +1167,9 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc,
#endif #endif
)) ))
{ {
#ifdef LIMIT_RELOAD_CLASS
out_subreg_loc = outloc; out_subreg_loc = outloc;
#endif
outloc = &SUBREG_REG (out); outloc = &SUBREG_REG (out);
out = *outloc; out = *outloc;
#if ! defined (LOAD_EXTEND_OP) && ! defined (WORD_REGISTER_OPERATIONS) #if ! defined (LOAD_EXTEND_OP) && ! defined (WORD_REGISTER_OPERATIONS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment