Hi,

The attached patch provides detection for the Fujitsu C/C++ compilers, which in 
particular are the default ones for K computer. It’s important to detect them 
correctly, since Fujitsu has the nasty habit of pretending to be gcc-4.1.2 with 
certain flags, but there are quite a few things that work different from gcc.

Unfortunately this patch ONLY does compiler ID detection, since there is no 
valid compiler version information provided by the preprocessor (there is a 
__fcc_version string, but it is always set to “600”).

I don’t think the version information is very important, but if you would like 
to extract it from the command line, the binaries provide the output below with 
the “-V” flag. These are the cross-compilers, but the native ones are identical 
(just remove the “px” component from the name).

klogin9$ fccpx -V
fccpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 
08:58:18) K-1.2.0-15

klogin9$ FCCpx -V
FCCpx: Fujitsu C/C++ Compiler Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 
08:58:18) K-1.2.0-15

klogin9$ frtpx -V
frtpx: Fujitsu Fortran Driver Version 1.2.0 P-id: L30000-07 (Jul 30 2013 
08:57:22) K-1.2.0-15


Cheers,

Erik

Attachment: 0001-Add-Fujitsu-compiler-detection.patch
Description: Binary data




-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to