This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/80502] Provide macro to indicate OpenMP SIMD support
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Aug 2017 12:26:16 +0000
- Subject: [Bug c/80502] Provide macro to indicate OpenMP SIMD support
- Auto-submitted: auto-generated
- References: <bug-80502-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80502
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
_OPENMP_SIMD is a bad idea, that namespace is reserved for OpenMP, so unless it
shows up in the OpenMP standard, it shouldn't be added.
Why do you need a macro? Just use #pragma omp simd etc. unconditionally,
compilers that don't have support for such pragmas will just ignore those.