OSDN Git Service

Fix 473.astar miscompile.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Apr 2010 21:03:37 +0000 (21:03 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:47:21 +0000 (09:47 +0900)
commitc632a3d285f1c24043373a04e53b685b5bc7b838
tree90c7dd66298eb63309de4bb78b254fde5cec2aea
parent4f849aee7d9d12e22d1833a69c43436cc0a21353
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158028 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.graphite
gcc/graphite-clast-to-gimple.c