emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display word wrapping


From: Andreas Schwab
Subject: Re: display word wrapping
Date: Mon, 31 May 2004 17:27:55 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Date: Mon, 31 May 2004 02:40:19 +0200
>> From: Juanma Barranquero <address@hidden>
>> 
>> > How exactly is img->spec invalid?  Can you post the details (xtype
>> > etc.)?
>> 
>> Basically, img points to nowhere, so img->spec is some random value.
>
> Ah, yes, I forgot that Windows doesn't Page Fault on NULL pointer
> dereferences, but instead fetches some random garbage...
>
>> > If you change it to
>> > 
>> >    volatile struct image *img;
>> > 
>> > does the problem go away as well?
>> 
>> No.
>
> This probably means that the optimizer is not in itself the direct
> culprit here, as declaring img `volatile' should have prevented the
> compiler from keeping it in a register.

The use of volatile as above does not mark img as volatile, only the
memory it points to.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]