Re: [Predef-contribute] open64 prefeds
Brought to you by:
breese,
tahonermann
From: Bjorn R. <br...@ma...> - 2013-04-27 13:04:24
|
On 04/26/2013 07:55 AM, Paul Hargrove wrote: > You already have that __OPENCC__ is the identifying symbol for Open64. > I can add that __OPENCC__ is the compiler's major version > and __OPENCC_MINOR__ is the minor number, both are integers. > Additionally, __OPENCC_PATCHLEVEL__ is a patch level but is NOT always > an integer (e.g. "3.2" without the quotes). > Finally __OPEN64__ is a version string Thank you for letting us know about the __OPENCC_* macros. I will add them to the predef pages. However, before I do that, I need to clarify the the role of __OPEN64__ versus __OPENCC__, because I am a bit confused about it. According to the AMD manual [1] the -opencc option "instructs the compiler to define the __OPEN64__ macro and other predefined preprocessor macros." Here it seems that __OPEN64__ is used to identify the compiler. Also, when I look at various source code for Open64, such as as OpenMPI, the use __OPEN64__ to identify, and __OPENCC__ to detect the major version. Given that Open64 uses gcc as a frontend, could you show me the results of this command? % gcc -E -dM -xc /dev/null [1] http://developer.amd.com/wordpress/media/2012/10/open64.pdf |