This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] PR rtl-optimization/71150, guard in_class_p check with REG_P


On 05/17/2016 06:02 AM, Jiong Wang wrote:
This bug is introduced by my commit r236181 where the inner rtx of
SUBREG haven't been checked while it should as "in_class_p" only
works with REG, and SUBREG_REG is actually not always REG.  If REG_P
check failed,  then we should fall back to normal code patch. The
following simple testcase for x86 can reproduce this bug.

long
foo (long a)
{
  return (unsigned) foo;
}

OK for trunk?

Yes.  Thank you, Jiong.
x86-64 bootstrap OK and no regression on check-gcc/g++.

2016-05-17  Jiong Wang  <jiong.wang@arm.com>

gcc/
  PR rtl-optimization/71150
* lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P check.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]