ports/devel/avr-gcc/files/patch-501-gcc-4.5.1-bug13579
Joerg Wunsch 0c19ecdca8 Upgrade to GCC 4.5.1.
Completely reorganize the patches for this port.

Patches for new devices are now synchronized with the Atmel AVR tools.
The main difference is the naming scheme, as FreeBSD patches start
with "patch-", while the Atmel AVR Tools patches end up in ".patch".
2011-12-17 09:56:31 +00:00

17 lines
539 B
Text

--- gcc/ipa-pure-const.c 2010-04-02 14:54:46.000000000 -0500
+++ gcc/ipa-pure-const.c 2011-02-24 16:10:26.000000000 -0600
@@ -416,6 +416,14 @@ check_stmt (gimple_stmt_iterator *gsip,
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. */
walk_stmt_load_store_ops (stmt, local, check_load, check_store);