[cfarm-users] Where did XL C/C++ predefined macros go on GCC112?
Paul Hargrove
phhargrove at lbl.gov
Tue Jul 31 03:33:50 CEST 2018
XL for little-endian is essentially a difference beast than prior compilers
with the XL name.
So, IBM changed the identification macros.
See the following two docs for more info:
https://www.ibm.com/support/knowledgecenter/en/SSXVZZ_13.1.6/com.ibm.xlcpp1316.lelinux.doc/compiler_ref/opt_qxlcompatmacros.html
https://www.ibm.com/support/knowledgecenter/en/SSXVZZ_13.1.6/com.ibm.xlcpp1316.lelinux.doc/compiler_ref/xlmacros.html
TL;DR: You can "bring them back" with -qxlcompatmacros
-Paul
On Mon, Jul 30, 2018 at 6:09 PM, Jeffrey Walton via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:
> I've got a compile failure on GCC112 with IBM XL C/C++. It is a Linux
> ppc64-le machine.
>
> This is a relatively new failure (or I have not tested in a while).
> The compiler avoids an XLC code guarded by defined(__xlc__) ||
> defined(__xlC__), and drops into a GCC code path. XLC then fails to
> compile __builtin_vec_vcipher (and friends).
>
> $ xlC -qshowmacros -qarch=pwr8 -qaltivec -E rijndael-simd.cpp | grep -i
> xlc
> #define __XLC_BUILTIN_VAARG__ 1
>
> There's only a single macro, which is very unusual.
>
> $ xlC -qversion
> IBM XL C/C++ for Linux, V13.1.6 (Community Edition)
> Version: 13.01.0006.0001
> /opt/ibm/xlC/13.1.6/bin/.orig/xlC ...
>
> Where did XL C/C++ predefined macros go on GCC112? How do I get them back?
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>
--
Paul H. Hargrove <PHHargrove at lbl.gov>
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20180730/1c7c7a85/attachment.html>
More information about the cfarm-users
mailing list