On Thu, 2009-10-01 at 12:33 +0200, Alexandre Julliard wrote:
Peter Dons Tychsen donpedro@tdcadsl.dk writes:
Just out of interest: You changed this to a write. Fine. But why the volatile? Can GCC assume predetermined results when writing to NULL? I don't see any reason to use volatile unless someone else is also read/writing from NULL (which is impossible). It might just generate more code in some cases.
It's just to make sure no compiler tries to be too smart. For a single access it probably doesn't make a difference; it could change if for instance we try to trigger a second crash and the compiler optimizes out the first write.
Ah,OK. Thanks for the info.
/pedro