[v3,0/1] gdb, testsuite: Handle unused compiler option fdiagnostics-color=never.

Message ID 20240515203014.3160-1-abdul.b.ijaz@intel.com
Headers
Series gdb, testsuite: Handle unused compiler option fdiagnostics-color=never. |

Message

Ijaz, Abdul B May 15, 2024, 8:30 p.m. UTC
  From: "Ijaz, Abdul B" <abdul.b.ijaz@intel.com>

Hi All,

This patch updates the handling of '-fdiagnostics-color=never' in the
function 'univeral_compile_options' of gdb.exp file.  Before this change
it only verifies the support of '-fdiagnostics-color=never' for the "C"
source file.  So while running tests with assembly source file (.s), many
of them are not able to run on icx/clang compilers because
'-fdiagnostics-color=never' option is not supported.  After this change,
this function is split into multiple functions to check the support for
different type of sources individually.

Changes since V2:

* Added reason in the comment about handling the option only for Assembly
  source files ".s" type and not for ".S" type files.

V2 patch:
https://sourceware.org/pipermail/gdb-patches/2024-May/209178.html

V1 patch:
https://sourceware.org/pipermail/gdb-patches/2024-March/207477.html

Thanks & Best Regards
Abdul Basit

Ijaz, Abdul B (1):
  gdb, testsuite: Handle unused compiler option
    fdiagnostics-color=never.

 gdb/testsuite/lib/gdb.exp | 54 +++++++++++++++++++++++++++++++--------
 1 file changed, 44 insertions(+), 10 deletions(-)