> On 06/26/13 23:57, dw wrote: >>> I still don't get, why we need those functions in crt. >> The problem is that in MSVC it it perfectly legal to just copy/paste the >> prototype for one of the intrinsics in your file and use it (see example >> below). It is NOT necessary to include intrin.h. If we want to support >> this (and I was told we do), then duplicating the functions in the >> library is the only approach I can think of. > > Hmm, yeah, I missed that point. Well, that won't work well (at least > this way), but I agree we have to support it one way or another. Maybe > placing them in (almost) always included file would do the trick, but > that has other problems. That said, I'm fine with your crt solution.
I am not sure whether it is a good idea so take it only as an input for further consideration. Alternative approach might perhaps be to adapt gcc specs file so gcc acts as if the option "-include path/to/intrin.h" is used. Regards, Morous ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
