diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-05-21 04:46:27 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-05-21 02:46:27 +0000 |
commit | d5ce4663f3d2f1d6c102757a2bbcdf00c7e9b49e (patch) | |
tree | 3bf2667ea8d10c10fa1897efd1197b476ab8dfa2 /gcc/ipa.c | |
parent | 1ec380e5f5ec14f7e073ea2b48f6b0ef9cf2a439 (diff) | |
download | gcc-d5ce4663f3d2f1d6c102757a2bbcdf00c7e9b49e.zip gcc-d5ce4663f3d2f1d6c102757a2bbcdf00c7e9b49e.tar.gz gcc-d5ce4663f3d2f1d6c102757a2bbcdf00c7e9b49e.tar.bz2 |
ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping; set writeonly flag only for vars actually written to.
* ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
set writeonly flag only for vars actually written to.
From-SVN: r210672
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -737,7 +737,7 @@ ipa_discover_readonly_nonaddressable_vars (void) if (!address_taken) { if (TREE_ADDRESSABLE (vnode->decl) && dump_file) - fprintf (dump_file, " %s (addressable)", vnode->name ()); + fprintf (dump_file, " %s (non-addressable)", vnode->name ()); varpool_for_node_and_aliases (vnode, clear_addressable_bit, NULL, true); } if (!address_taken && !written @@ -750,7 +750,7 @@ ipa_discover_readonly_nonaddressable_vars (void) fprintf (dump_file, " %s (read-only)", vnode->name ()); varpool_for_node_and_aliases (vnode, set_readonly_bit, NULL, true); } - if (!vnode->writeonly && !read && !address_taken) + if (!vnode->writeonly && !read && !address_taken && written) { if (dump_file) fprintf (dump_file, " %s (write-only)", vnode->name ()); |