]> git.pld-linux.org Git - packages/crossavr-gcc.git/blob - 501-gcc-4.5.1-bug13579.patch
21fb4adc1219a2813cd5a1d7ff314225ff524963
[packages/crossavr-gcc.git] / 501-gcc-4.5.1-bug13579.patch
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);
5      }
6  
7 +  if (gimple_has_volatile_ops (stmt))
8 +    {
9 +      local->pure_const_state = IPA_NEITHER;
10 +      if (dump_file)
11 +       fprintf (dump_file, "    Volatile stmt is not const/pure\n");
12 +    }
13 +
14 +
15    /* Look for loads and stores.  */
16    walk_stmt_load_store_ops (stmt, local, check_load, check_store);
17  
This page took 0.024269 seconds and 2 git commands to generate.