mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-12 15:20:33 +08:00
re PR tree-optimization/45052 (volatile ignored)
2010-07-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/45052 * ipa-pure-const.c (check_stmt): Check volatileness. From-SVN: r162528
This commit is contained in:
parent
d4e075f2bd
commit
4e89a3faf8
@ -1,3 +1,8 @@
|
|||||||
|
2010-07-26 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR tree-optimization/45052
|
||||||
|
* ipa-pure-const.c (check_stmt): Check volatileness.
|
||||||
|
|
||||||
2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
|
2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
PR target/44707
|
PR target/44707
|
||||||
|
@ -651,6 +651,13 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa)
|
|||||||
print_gimple_stmt (dump_file, stmt, 0, 0);
|
print_gimple_stmt (dump_file, stmt, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gimple_has_volatile_ops (stmt))
|
||||||
|
{
|
||||||
|
local->pure_const_state = IPA_NEITHER;
|
||||||
|
if (dump_file)
|
||||||
|
fprintf (dump_file, " Volatile stmt is not const/pure\n");
|
||||||
|
}
|
||||||
|
|
||||||
/* Look for loads and stores. */
|
/* Look for loads and stores. */
|
||||||
walk_stmt_load_store_ops (stmt, local,
|
walk_stmt_load_store_ops (stmt, local,
|
||||||
ipa ? check_ipa_load : check_load,
|
ipa ? check_ipa_load : check_load,
|
||||||
|
Loading…
Reference in New Issue
Block a user