X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fproducer.h;h=f7c19368bc67c3970d5d67bae9f2690d542f847a;hb=1d2eeb660f0885807320792ee18c033b34522225;hp=143d4e1b9a2c251ea5ee3bbf115fe3ecbd898eab;hpb=b32b108aba2c0119d0e231d203d3284539da2379;p=binutils-gdb.git diff --git a/gdb/producer.h b/gdb/producer.h index 143d4e1b9a2..f7c19368bc6 100644 --- a/gdb/producer.h +++ b/gdb/producer.h @@ -1,6 +1,6 @@ /* Producer string parsers for GDB. - Copyright (C) 2012-2017 Free Software Foundation, Inc. + Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is part of GDB. @@ -30,4 +30,15 @@ extern int producer_is_gcc_ge_4 (const char *producer); is NULL or it isn't GCC. */ extern int producer_is_gcc (const char *producer, int *major, int *minor); +/* Check for Intel compilers >= 19.0. */ +extern bool producer_is_icc_ge_19 (const char *producer); + +/* Returns true if the given PRODUCER string is Intel or false + otherwise. Sets the MAJOR and MINOR versions when not NULL. */ +extern bool producer_is_icc (const char *producer, int *major, int *minor); + +/* Returns true if the given PRODUCER string is LLVM (clang/flang) or + false otherwise.*/ +extern bool producer_is_llvm (const char *producer); + #endif