aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-08-05 02:58:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-08-05 02:58:15 +0000
commit6e4f9a957e22aaed58cf628e34d420fdfa21a3d8 (patch)
treefa207e6e1795c5257fbe25dc8ef6be5f219245e2 /gcc/loop-unroll.c
parentcb7b4e77170a356818298d5e7fa2f9db747b497f (diff)
downloadgcc-6e4f9a957e22aaed58cf628e34d420fdfa21a3d8.zip
gcc-6e4f9a957e22aaed58cf628e34d420fdfa21a3d8.tar.gz
gcc-6e4f9a957e22aaed58cf628e34d420fdfa21a3d8.tar.bz2
re PR go/61308 (gccgo: ICE in Expression::check_bounds [GoSmith])
PR go/61308 PR go/61866 compiler: Don't cast index expr to int before bounds check. This fixes http://gcc.gnu.org/PR61866 : on a 32-bit system, casting an int64 index to int drops the upper 32 bits of the value, and thus can cause an out-of-range index to appear to be in range. This undoes part of change 1318:fa6e0c716dba (https://codereview.appspot.com/104610044) and therefore breaks http://gcc.gnu.org/PR61308 again. I have a separate patch for that (http://codereview.appspot.com/122020043). In addition to undoing part of that change, this patch adds code to avoid a compiler crash. This changes PR61308 from a compiler crash to an incorrect error message. From-SVN: r213616
Diffstat (limited to 'gcc/loop-unroll.c')
0 files changed, 0 insertions, 0 deletions