summaryrefslogtreecommitdiff
path: root/gcc/ipa-pure-const.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-15 09:46:55 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-15 09:46:55 +0000
commitdb5a36931d0f9f33bd4938107010f0c155f742b1 (patch)
tree44de42807a02b7f8a43a5d1b22665c200b03e1d2 /gcc/ipa-pure-const.c
parentf00c01915c2750c384a0ea8f044dafe0873a06a9 (diff)
downloadgcc-db5a36931d0f9f33bd4938107010f0c155f742b1.tar.gz
* tree.h (memory_identifier_string): Remove.
* ipa-reference.c: Update comment; do not include gt-ipa-reference.h (ipa_reference_global_vars_info_d): Remove statics_not_read and statics_not_written. (ipa_reference_optimization_summary_d): New structure. (ipa_reference_optimization_summary_t): New type and vector. (ipa_reference_vars_info_d): Embedd structures instead of using pointers. (reference_vars_to_consider): Remove out of GGC space. (module_statics_escape): Remove. (global_info_obstack): Rename to ... (optimization_summary_obstack): ... this one. (initialization_status_t): Remove. (memory_identifier_string): Remove. (get_reference_vars_info): Fix indenting. (set_reference_vars_info): Likewise. (get_reference_optimization_summary): New. (set_reference_optimization_summary): New. (get_global_reference_vars_info): Remove. (ipa_reference_get_read_global): Remove. (ipa_reference_get_written_global): Remove. (ipa_reference_get_not_read_global): Update. (ipa_reference_get_not_written_global): Update. (is_proper_for_analysis): Outlaw addressable. (propagate_bits): Update for new datastructures. (analyze_variable): Remove. (init_function_info): Update for new datastructures. (clean_function_local_data): Remove. (clean_function): Remove. (copy_global_bitmap): Use optimizations_summary_obstack. (duplicate_node_data): Duplicate optimization summary only. (remove_node_data): Remove optimization summary only. (generate_summary): Do not analyze variables; do not compute module_statics_escape; do not prune solutions by it. (read_write_all_from_decl): Fix typos in comments. (propagate): Doscover readonly and nonaddressable first; update for new datastructures; share global bitmaps. * ipa-reference.h (ipa_reference_get_read_global, ipa_reference_get_written_global): Remove. * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string. * Makefile.in: Remove ipa-refereference from GT files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159430 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r--gcc/ipa-pure-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index b7a8de3540d..d1fe0595b6c 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -533,7 +533,7 @@ check_stmt (gimple_stmt_iterator *gsip, funct_state local, bool ipa)
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 (strcmp (TREE_STRING_POINTER (TREE_VALUE (op)), "memory") == 0)
{
if (dump_file)
fprintf (dump_file, " memory asm clobber is not const/pure");