Add support to recognize clang.
authorDoug Evans <dje@google.com>
Mon, 7 Apr 2014 21:14:03 +0000 (14:14 -0700)
committerDoug Evans <dje@google.com>
Mon, 7 Apr 2014 21:14:03 +0000 (14:14 -0700)
* lib/compiler.c: Identify the clang compiler.
* lib/compiler.cc: Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/compiler.c
gdb/testsuite/lib/compiler.cc

index bf7c7a65d66c75afcec00cd52457552f1a6f1285..991c4e81485035e9d80621de2c0e55897a06c1b4 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-07  David Blaikie  <dblaikie@gmail.com>
+
+       * lib/compiler.c: Identify the clang compiler.
+       * lib/compiler.cc: Ditto.
+
 2014-04-03  Yao Qi  <yao@codesourcery.com>
 
        * gdb.base/setshow.exp: Invoke string_to_regexp to HOME and PWD.
index afa0e59952c73415f8a1ead2c47d0e7884509a03..c28367b209ab1c5d01f2db9e72be92aec6f0ea7e 100644 (file)
@@ -73,3 +73,7 @@ set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
 #if defined (__ARMCC_VERSION)
 set compiler_info [join {armcc __ARMCC_VERSION} -]
 #endif
+
+#if defined (__clang__)
+set compiler_info [join {clang __clang_major__ __clang_minor__ __clang_patchlevel__} -]
+#endif
index ee251bc0ff383094110295a5ef1456b8b1aef810..79c68b49702356422444f158faa22a25d9e8ff36 100644 (file)
@@ -61,3 +61,7 @@ set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
 #if defined (__ARMCC_VERSION)
 set compiler_info [join {armcc __ARMCC_VERSION} -]
 #endif
+
+#if defined (__clang__)
+set compiler_info [join {clang __clang_major__ __clang_minor__ __clang_patchlevel__} -]
+#endif
This page took 0.038226 seconds and 4 git commands to generate.