[Bug c++/41201] #pragma GCC target ("sse2") doesn't alter __SSE2__ in C++ (as it does in C)

justin dot lebar+bug at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 26 16:21:00 GMT 2010



------- Comment #5 from justin dot lebar+bug at gmail dot com  2010-07-26 16:20 -------
FWIW, it seems that MSVC is perfectly happy to compile code with intrinsics
inside a file which doesn't have any special flags.  It would be awesome if
there were some way to do the same with GCC, even if it involves #pragma
hackery.  The current limitation makes using intrinsics pretty painful, as it
requires a separate file for each targeted instruction set.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41201



More information about the Gcc-bugs mailing list