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

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

Message

Ijaz, Abdul B May 14, 2024, 5:16 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 V1:

* Fix the feedback on V1 patch i.e remove sign off line in commit message
  and remove the changes not needed for the fix.
* Use generic source file for checking the compile option support in .s
  assembly file.

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 | 52 +++++++++++++++++++++++++++++++--------
 1 file changed, 42 insertions(+), 10 deletions(-)