1 --- gcc/ipa-pure-const.c 2010-04-02 14:54:46.000000000 -0500
2 +++ gcc/ipa-pure-const.c 2011-02-24 16:10:26.000000000 -0600
3 @@ -416,6 +416,14 @@ check_stmt (gimple_stmt_iterator *gsip,
4 print_gimple_stmt (dump_file, stmt, 0, 0);
7 + if (gimple_has_volatile_ops (stmt))
9 + local->pure_const_state = IPA_NEITHER;
11 + fprintf (dump_file, " Volatile stmt is not const/pure\n");
15 /* Look for loads and stores. */
16 walk_stmt_load_store_ops (stmt, local, check_load, check_store);