This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47575] store-motion removes global stores from endless loops
- From: "rakdver at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Feb 2011 17:13:08 +0000
- Subject: [Bug tree-optimization/47575] store-motion removes global stores from endless loops
- Auto-submitted: auto-generated
- References: <bug-47575-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47575
--- Comment #2 from Zdenek Dvorak <rakdver at gcc dot gnu.org> 2011-02-01 16:56:57 UTC ---
There is nothing in C standard requiring us to preserve global stores that are
unused, unless they are volatile. Store motion is by far not the only
optimization in gcc that affects global stores. That this happens in an
endless loop is not important.