gdb/testsuite: enable __INTEL_LLVM_COMPILER preprocessor in get_compiler_info
authorNils-Christian Kempke <nils-christian.kempke@intel.com>
Tue, 11 Jan 2022 17:12:40 +0000 (18:12 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 14 Jan 2022 14:32:29 +0000 (14:32 +0000)
commit2026dcfcc0c0e60efa968b889f010a10a93cfe09
tree30e6ed80c057b8d65cb74b5e5dc71cdbefc4b070
parentff66e8c5bee8a57b531515342e6126782ea9a651
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.
gdb/testsuite/lib/compiler.c
gdb/testsuite/lib/compiler.cc
gdb/testsuite/lib/fortran.exp