aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/fortran.exp
diff options
context:
space:
mode:
authorNils-Christian Kempke <nils-christian.kempke@intel.com>2022-01-11 18:12:40 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-01-14 14:32:29 +0000
commit2026dcfcc0c0e60efa968b889f010a10a93cfe09 (patch)
tree30e6ed80c057b8d65cb74b5e5dc71cdbefc4b070 /gdb/testsuite/lib/fortran.exp
parentff66e8c5bee8a57b531515342e6126782ea9a651 (diff)
downloadgdb-2026dcfcc0c0e60efa968b889f010a10a93cfe09.zip
gdb-2026dcfcc0c0e60efa968b889f010a10a93cfe09.tar.gz
gdb-2026dcfcc0c0e60efa968b889f010a10a93cfe09.tar.bz2
gdb/testsuite: enable __INTEL_LLVM_COMPILER preprocessor in get_compiler_info
Intel Next Gen compiler defines preprocessor __INTEL_LLVM_COMPILER and provides version info in __clang_version__ e.g. value: 12.0.0 (icx 2020.10.0.1113). gdb/testsuite/ChangeLog: 2020-12-07 Abdul Basit Ijaz <abdul.b.ijaz@intel.com> * lib/compiler.c: Add Intel next gen compiler pre-processor check. * lib/compiler.cc: Ditto. * lib/fortran.exp (fortran_main): Check Intel next gen compiler in test_compiler_info.
Diffstat (limited to 'gdb/testsuite/lib/fortran.exp')
-rw-r--r--gdb/testsuite/lib/fortran.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/fortran.exp b/gdb/testsuite/lib/fortran.exp
index ee7fe12..a97c6ee 100644
--- a/gdb/testsuite/lib/fortran.exp
+++ b/gdb/testsuite/lib/fortran.exp
@@ -160,7 +160,8 @@ proc fortran_character1 {} {
proc fortran_main {} {
if {[test_compiler_info {gcc-4-[012]-*}]
|| [test_compiler_info {gcc-*}]
- || [test_compiler_info {icc-*}]} {
+ || [test_compiler_info {icc-*}]
+ || [test_compiler_info {intel-*}]} {
return "MAIN__"
} elseif {[test_compiler_info {clang-*}]} {
return "MAIN_"