aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2016-05-09 15:29:03 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2016-05-09 15:29:03 +0000
commitb9a28869b9314fb06386f6fd2c52d42644d6618d (patch)
tree2054e2e06c427a113b32bb3fab8c101e2ea3aa4d /gcc/cfgexpand.c
parent75a6b91a67f16467c8ed4224819c343b9fbdcedc (diff)
downloadgcc-b9a28869b9314fb06386f6fd2c52d42644d6618d.zip
gcc-b9a28869b9314fb06386f6fd2c52d42644d6618d.tar.gz
gcc-b9a28869b9314fb06386f6fd2c52d42644d6618d.tar.bz2
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. From-SVN: r236040
Diffstat (limited to 'gcc/cfgexpand.c')
0 files changed, 0 insertions, 0 deletions