thomas

Show:

What's happening?

  • __try1 (excpt.h) missing memory clobber

    Problem: __try1 will fail "mysteriously" (consistently, reproducably, but not according to any immediately obvious pattern) if optimisations are turned on. Looking at the disassembly shows that in these cases of failure, instructions were reordered, thus if an exception occurred too soon after __try1, it would sometimes only install the SEH handler after the application had already crashed...

    2009-08-06 10:01:37 UTC in MinGW - Minimalist GNU for Windows

  • MIB_IPADDRROW misnomer

    Field "unused2" of structure MIB_IPADDRROW (iprtrmib.h line 60) should be called "wType". See http://msdn.microsoft.com/en-us/library/aa366845(VS.85).aspx (present in w32api-3.13)

    2009-02-06 15:32:45 UTC in MinGW - Minimalist GNU for Windows

  • long long division broken

    Unless I'm just too stupid to grasp it, long long and unsigned long long arithmetic, in particular division, does not seem to work under MinGW. Any division evaluates to 0ull, and 1ull in optimized build, respectively (any optimization level). Tested on official MinGW build (gcc 4.2) and TDM's custom build (gcc 4.3), see below for exact version info. A quick Google brought up that there is...

    2008-07-11 11:59:34 UTC in MinGW - Minimalist GNU for Windows

  • Comment: GetProcessHandleCount has wrong _WIN32_WINNT

    Same issue for: GetSystemRegistryQuota (lines 1542-1444) GetThreadIOPendingFlag (lines 1567-1569) ...but NOT for some others (e.g. ReOpenFile, GetDllDirectory, SetDllDirectory).

    2008-03-28 10:05:25 UTC in MinGW - Minimalist GNU for Windows

  • GetProcessHandleCount has wrong _WIN32_WINNT

    winbase.h, line 1499 ff.: #if (_WIN32_WINNT >= 0x0502) WINBASEAPI BOOL WINAPI GetProcessHandleCount(HANDLE,PDWORD); #endif According to http://msdn2.microsoft.com/en-us/library/ms683214.aspx this should be _WIN32_WINNT >= 0x0501.

    2008-03-28 09:57:53 UTC in MinGW - Minimalist GNU for Windows

  • Comment: Internal compiler error (gcc 4.2.1-dw)

    Forgot to mention: I am of course aware that there is _mm_setzero_si128() for the very same effect, but that's not the issue.

    2008-03-21 15:07:07 UTC in MinGW - Minimalist GNU for Windows

  • Internal compiler error (gcc 4.2.1-dw)

    Compiling with debug info (-g) produces an internal compiler error on MinGW-gcc-4.2.1-dw when zero-initialising a static (or const, or static const) _m128i variable. Compiling with no debug info works normally, as does compiling with MinGW-gcc-3.4.5. D:\gcc-err>gcc -msse2 test.cpp D:\gcc-err>gcc -msse2 -g test.cpp test.cpp:2: internal compiler error: in rtl_for_decl_init, at...

    2008-03-21 14:54:57 UTC in MinGW - Minimalist GNU for Windows

  • Typo

    simd_cp_x86.h, line 85: _mm_suffle_ps should be _mm_shuffle_ps.

    2008-03-01 21:08:03 UTC in Cross-platform SIMD C Headers

  • Comment: Raw input devices

    Yes and no. Failing to compile, I went to the publicly available MSDN, queried for the corresponding API functions, and looked up the missing structs and macros. Then, with this information, I wrote down the code attached in the file. I guess that's fair enough for "free", since there's hardly any other way, except by reverse engineering the Windows kernel :)

    2007-10-07 20:38:57 UTC in MinGW - Minimalist GNU for Windows

  • Code::Blocks project file

    Code::Blocks (rev. 4400) project file for GLEW 1.4.0. GLEW is built both as static and dynamic library, including DEF file. glewinfo and visualinfo are built with dynamic linkage, glewinfo is built as glewinfo-static for demonstration, too.

    2007-08-30 13:28:59 UTC in The OpenGL Extension Wrangler Library

About Me

  • 2005-08-08 (4 years ago)
  • 1325936
  • thomas-denk (My Site)
  • thomas

Send me a message