]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix 473.astar miscompile.
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 6 Apr 2010 21:03:37 +0000 (21:03 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 6 Apr 2010 21:03:37 +0000 (21:03 +0000)
commitb8132a7dfb20b9dbc52a5ef171deea6d3fb6eab1
tree7fb4a995bc0963ed0f1d9b9e0400671db72593ab
parentdbe0d6521664869b3b0d1f9e24f0a4e657964fe8
Fix 473.astar miscompile.

2010-04-05  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/43519
* graphite-clast-to-gimple.c (max_signed_precision_type): Use
lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
When converting an unsigned type to signed, double its precision.
(gcc_type_for_interval): Use lang_hooks.types.type_for_size.
(gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
(graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.

From-SVN: r158028
gcc/ChangeLog.graphite
gcc/graphite-clast-to-gimple.c