[PATCH] D34158: to support gcc 4.8 (and newer) compatibility on Linux, preinclude <stdc-predef.h>

Fedor Sergeev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 13 12:59:43 PDT 2017


fedor.sergeev added a comment.

> docs are rather clear that this functionality is Linux-only

Oh, well, gcc implementation is rather generic, it relies on gcc's config.gcc to detect glibc and then it adds a hook that unconditionally provides stdc-predef.h (TARGET_C_PREINCLUDE).
Currently config.gcc does that for the following pattern of triples:
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)

I'm not sure how far into that do you really want to dive.... :-/


https://reviews.llvm.org/D34158





More information about the cfe-commits mailing list