tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
2012-05-15 Tristan Gingold <gingold@adacore.com> * tree-ssa-strlen.c (get_string_length): Convert lhs if needed. From-SVN: r187507
This commit is contained in:
parent
e7834f95b1
commit
33960e2e8a
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-05-15 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
|
||||
|
||||
2012-05-15 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* gimple.c (gimple_set_modified): Move ...
|
||||
|
@ -26,7 +30,7 @@
|
|||
|
||||
* doc/md.texi (fma): Define to only be applicable for single
|
||||
rounding.
|
||||
|
||||
|
||||
2012-05-14 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/46098
|
||||
|
|
|
@ -427,6 +427,12 @@ get_string_length (strinfo si)
|
|||
NULL);
|
||||
add_referenced_var (lhs_var);
|
||||
tem = gimple_call_arg (stmt, 0);
|
||||
if (!ptrofftype_p (TREE_TYPE (lhs)))
|
||||
{
|
||||
lhs = convert_to_ptrofftype (lhs);
|
||||
lhs = force_gimple_operand_gsi (&gsi, lhs, true, NULL_TREE,
|
||||
true, GSI_SAME_STMT);
|
||||
}
|
||||
lenstmt
|
||||
= gimple_build_assign_with_ops (POINTER_PLUS_EXPR,
|
||||
make_ssa_name (lhs_var, NULL),
|
||||
|
|
Loading…
Add table
Reference in a new issue