debugging a crash on Windows

Dirk Hohndel dirk at hohndel.org
Sat Jun 7 13:31:21 PDT 2014


On Sat, Jun 07, 2014 at 12:14:36PM -0700, Linus Torvalds wrote:
> On Sat, Jun 7, 2014 at 11:48 AM, Linus Torvalds
> <torvalds at linux-foundation.org> wrote:
> >
> > I'll see if I can make some really ugly macro magic that makes this "typesafe".
> 
> Here's a trial.
> 
> Note: this uses gcc-specific crud, so may not be really acceptable. We

clang on Linux liked it just fine, as did mingw32 for Linux->Windows (but
that's of course gcc based). And I just tried it on Mac with their version
of clang and that was happy, too :-)

> could make the "MATCH()" macro do the type-checking only with gcc, and
> then non-gcc compilers would just silently do the casting.

I don't see a need for this.

> Does this make any difference for you on Windows?

Yes, it fixes the crash.

Thank you.

Could I get a signed-off pach with a decent commit message, please?

Thanks

/D


More information about the subsurface mailing list