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: "ebotcazou 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:20:01 +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
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot
| |gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-01-21 09:19:42 UTC ---
> Untested fix.
tree_invariant_p_1 uses
if (TREE_CONSTANT (t)
|| (TREE_READONLY (t) && !TREE_SIDE_EFFECTS (t)))
return true;
rather than TREE_THIS_VOLATILE.