[Bug c/42126] gcc optimizes line away/optimizes to an endless loop
codemasterhs at yahoo dot de
gcc-bugzilla@gcc.gnu.org
Sat Nov 21 09:02:00 GMT 2009
------- Comment #5 from codemasterhs at yahoo dot de 2009-11-21 09:02 -------
(In reply to comment #4)
> The pointer is not declared volatile.
>
> static struct smpMsg_t * volatile freeList;
>
> would be a volatile pointer.
>
Ok, this worked. So where has to be the volatile keyword, so that everything
works? I mean I thought "volatile TYPE (like int, char and so on) foo" is
right, isn´t it? Or does this only not work for pointers?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42126
More information about the Gcc-bugs
mailing list