r236040 - in /trunk/gcc: ChangeLog tree-affine.c
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Mon May 9 15:29:00 GMT 2016
Author: rsandifo
Date: Mon May 9 15:29:03 2016
New Revision: 236040
URL: https://gcc.gnu.org/viewcvs?rev=236040&root=gcc&view=rev
Log:
Missing pointer dereference in tree-affine.c
wide_int_constant_multiple_p used:
if (*mult_set && mult != 0)
return false;
to check whether we had previously seen a nonzero multiple, but "mult" is
a pointer to the previous value rather than the previous value itself.
Noticed by inspection while working on another patch, so I don't have a
testcase. I tried adding an assert for combinations that were wrongly
rejected before but it didn't trigger during a bootstrap and regtest.
Tested on x86_64-linux-gnu.
gcc/
* tree-affine.c (wide_int_constant_multiple_p): Add missing
pointer dereference.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-affine.c
More information about the Gcc-cvs
mailing list