public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31628] New: [gdb/testsuite] Support different compiler versions for different languages
@ 2024-04-10 16:11 vries at gcc dot gnu.org
  2024-04-10 16:17 ` [Bug testsuite/31628] " vries at gcc dot gnu.org
  2024-04-11  7:03 ` vries at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2024-04-10 16:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31628

            Bug ID: 31628
           Summary: [gdb/testsuite] Support different compiler versions
                    for different languages
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

I recently tried a testsuite run with the clang/clang++ compiler.

I ran into some failures in gdb.ada due to the use of test_compiler_info.

No language argument is specified because ada is not supported, but then the
language defaults to c, meaning the compiler info test is done using clang but
the compiler used is gnatmake.

I disregarded this, because the setup is a bit weird, but today I came across a
machine on the gcc compile farm with gnatmake 10.5.0 and gcc 11.4.0, where I
run into the exact same problem.

A solution could be to drop defaulting to c in test_compiler_info, but it's
used in ~300 locations, so that could prove hard to fix manually.  Another
approach would be to choose the default based on test dir, so ada in gdb.ada
and so on.

Anyway, probably support for ada needs to be added in test_compiler_info
regardless.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug testsuite/31628] [gdb/testsuite] Support different compiler versions for different languages
  2024-04-10 16:11 [Bug testsuite/31628] New: [gdb/testsuite] Support different compiler versions for different languages vries at gcc dot gnu.org
@ 2024-04-10 16:17 ` vries at gcc dot gnu.org
  2024-04-11  7:03 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2024-04-10 16:17 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31628

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug testsuite/31628] [gdb/testsuite] Support different compiler versions for different languages
  2024-04-10 16:11 [Bug testsuite/31628] New: [gdb/testsuite] Support different compiler versions for different languages vries at gcc dot gnu.org
  2024-04-10 16:17 ` [Bug testsuite/31628] " vries at gcc dot gnu.org
@ 2024-04-11  7:03 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2024-04-11  7:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31628

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
I tried to work around this by using CC_FOR_TARGET etc.

But we have
- gcc-10 and gcc-11
- g++-11
- gfortran-11
- gnatmake-10
so I can't make a set that is consistent.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-11  7:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 16:11 [Bug testsuite/31628] New: [gdb/testsuite] Support different compiler versions for different languages vries at gcc dot gnu.org
2024-04-10 16:17 ` [Bug testsuite/31628] " vries at gcc dot gnu.org
2024-04-11  7:03 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).