Problems with inlined strlenW and gcc 2.95.2 with -O2

2000-09-12 Thread Dmitry Timoshkov
Hello all. Some traces +mdi and version of strlenW that prints result before exit: ... trace:mdi:MDI_UpdateFrameText AFTER lstrcpyW(lpBuffer): L"Adobe PageMaker 6.5" trace:mdi:MDI_UpdateFrameText BEFORE strcatW(L"Adobe PageMaker 6.5", L" - [") strlenW(): 19 -- right

Re: Problems with inlined strlenW and gcc 2.95.2 with -O2

2000-09-12 Thread Ulrich Weigand
Dmitry wrote: Some workarounds: 1. Without -O2 - all right. 2. Disabling assembly in strlenW - all right. Ideas? It would appear that a __volatile__ is missing in strlenW; therefore, the CSE pass assumes strlenW(lpBuffer) has always the same value (as long as the value of lpBuffer