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 doesn't change), even though in fact the value of strlenW(lpBuffer) depends on the *contents* of lpBuffer. Bye, Ulrich -- Dr. Ulrich Weigand [EMAIL PROTECTED]
- Problems with inlined strlenW and gcc 2.95.2 with -O2 Dmitry Timoshkov
- Ulrich Weigand