This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't hoist volatile mems out of loops
- To: bernds at balti dot cygnus dot co dot uk (Bernd Schmidt)
- Subject: Re: Don't hoist volatile mems out of loops
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Wed, 8 Dec 1999 19:05:12 GMT
- Cc: gcc-patches at gcc dot gnu dot org dot amylaar@cygnus.co.uk
- Newsgroups: cygnus.egcs.patches
In article <Pine.LNX.4.10.9912081614350.4323-100000@balti.cygnus.co.uk> you wrote:
: I noticed this bug when I tried to prevent overoptimization of a loop
: by adding "volatile" to a global variable and found that the compiler
: ignored it. That was with gcc-2.95.2.
There have been a number of changes since gcc-2.95.2. Have you checked that
this has not been fixed with this patch?
Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
* loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.