This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41201] #pragma GCC target ("sse2") doesn't alter __SSE2__ in C++ (as it does in C)
- From: "justin dot lebar+bug at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2010 16:20:50 -0000
- Subject: [Bug c++/41201] #pragma GCC target ("sse2") doesn't alter __SSE2__ in C++ (as it does in C)
- References: <bug-41201-5699@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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