This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47391] [4.5/4.6 Regression] read from const volatile incorrectly eliminated
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Jan 2011 09:30:17 +0000
- Subject: [Bug tree-optimization/47391] [4.5/4.6 Regression] read from const volatile incorrectly eliminated
- Auto-submitted: auto-generated
- References: <bug-47391-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47391
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-21 09:29:46 UTC ---
setup_one_parameter too, on the other side
tree_add_const_value_attribute_for_decl, set_mem_attributes_minus_bitpos and
get_callee_fndecl test TREE_READONLY && !TREE_THIS_VOLATILE.