clang claim to be gcc 4.8.1 instead of 4.2.1

Nico Weber thakis at chromium.org
Wed Nov 12 15:04:25 PST 2014


This was discussed in this thread
http://marc.info/?t=133682946900003&r=1&w=2 People were generally
supportive of the idea, but it was deemed very hard to get glibc to build
with this ( http://marc.info/?l=cfe-dev&m=133717592322519&w=2 ) and the
benefit of doing this wasn't seen as very big in the end.

On Wed, Nov 12, 2014 at 2:55 PM, Yaron Keren <yaron.keren at gmail.com> wrote:

> gcc 4.2.1 is really old from 2008.  Some configuration headers such as
> boost "libstdcpp3.hpp" behave differently for pre-gcc 4.3 or later.
>
> gcc 4.8.1 is more recent, reasonable claim for clang.
>
> I had tried going for 4.9.1 but encountered a problem with intrinsics in
> mingw 4.9.1 intrin.h which are treated differently for gcc 4.9 or later:
>
>  * On GCC 4.9 we may always include those headers. On older GCCs, we may
> do it only if CPU
>  * features used by them are enabled, so we need to check macros like
> __SSE__ or __MMX__ first.
>  */
> #if __MINGW_GNUC_PREREQ(4, 9)
> #define __MINGW_FORCE_SYS_INTRINS
> #endif
> ...
>
> this does not work correctly with clang since the headers try to use SSE3
> instructions without __SSE3__ being defined and fail.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141112/9baa8c9c/attachment.html>


More information about the cfe-commits mailing list