--- gcc/ipa-pure-const.c.jj 2010-08-11 16:06:19.000000000 +0200 +++ gcc/ipa-pure-const.c 2010-11-15 20:06:36.121310614 +0100 @@ -460,7 +460,10 @@ check_stmt (gimple_stmt_iterator *gsip, for (i = 0; i < gimple_asm_nclobbers (stmt); i++) { tree op = gimple_asm_clobber_op (stmt, i); - if (simple_cst_equal(TREE_VALUE (op), memory_identifier_string) == 1) + if (TREE_CODE (TREE_VALUE (op)) == STRING_CST + && TREE_STRING_LENGTH (TREE_VALUE (op)) == sizeof ("memory") + && memcmp (TREE_STRING_POINTER (TREE_VALUE (op)), "memory", + sizeof ("memory")) == 0) { if (dump_file) fprintf (dump_file, " memory asm clobber is not const/pure");