This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Which version of GCC supports intrinsics independent of -mXXX?
- From: Jeffrey Walton <noloader at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 17 Apr 2017 09:55:12 -0400
- Subject: Re: Which version of GCC supports intrinsics independent of -mXXX?
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8nzLvJScGGLJs=4pBXmy1ZkZoPEyN+5xW+hLN2ofn=44A@mail.gmail.com>
- Reply-to: noloader at gmail dot com
> I'm trying to use SSE2 and SSSE3 intrinsics on some old hardware. The
> program performs its own CPUID checks, so it knows when it can enter a
> particular code path.
>
> The program is compiled with -march=native, but the machine lacks
> SSSE3 and above. It causing the compile to fail.
>
> I recall seeing a GCC bug report that enabled intrinsics all time,
> regardless of the machine's features. I can no longer locate the bug
> report, so I don't know which version of GCC supports the feature.
>
> My question is, which version of GCC supports intrinsics independent of -mXXX?
Its supposed to be GCC 4.9, but I don't believe it works as reported.
The intrinsics are not available in GCC 5.4 (maybe something changed).
Here is the issue: "Please make the intrinsics headers like
immintrin.h be usable without compiler flags",
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57202.
Jeff