This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33102] volatile excessively suppresses optimizations in range checks
- From: "paulmck at linux dot vnet dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2007 01:04:27 -0000
- Subject: [Bug c/33102] volatile excessively suppresses optimizations in range checks
- References: <bug-33102-14989@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paulmck at linux dot vnet dot ibm dot com 2007-08-18 01:04 -------
(In reply to comment #4)
> It is still the same issue.
Perhaps I am missing something, but I don't know of any hardware that would
react differently to this two-instruction sequence:
movl i, %eax
cmpl $1, %eax
than it would to the following single instruction:
cmpl $1, j
Either way, there is a single memory reference, and for all hardware I know of,
it looks the same to both memory and external devices.
--
paulmck at linux dot vnet dot ibm dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33102