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 ` (3 more replies) 0 siblings, 4 replies; 5+ 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] 5+ 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 ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ 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] 5+ 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 2024-11-08 8:08 ` vries at gcc dot gnu.org 2025-01-08 15:27 ` vries at gcc dot gnu.org 3 siblings, 0 replies; 5+ 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] 5+ 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 @ 2024-11-08 8:08 ` vries at gcc dot gnu.org 2025-01-08 15:27 ` vries at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: vries at gcc dot gnu.org @ 2024-11-08 8:08 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=31628 --- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- I ran into this again. For some reason, on an aarch64-linux laptop with debian testing I got gcc 14 and ada 13 and ran into a failure in gdb.ada/scalar_storage.exp which checks gcc_major_version: ... if {[gcc_major_version] < 14} { ... Using gnatmake_version_at_least instead fixes this: ... if { ![gnatmake_version_at_least 14] } { ... -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ 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 ` (2 preceding siblings ...) 2024-11-08 8:08 ` vries at gcc dot gnu.org @ 2025-01-08 15:27 ` vries at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: vries at gcc dot gnu.org @ 2025-01-08 15:27 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=31628 --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Tom de Vries from comment #2) > I ran into this again. > > For some reason, on an aarch64-linux laptop with debian testing I got gcc 14 > and ada 13 and ran into a failure in gdb.ada/scalar_storage.exp which checks > gcc_major_version: > ... > if {[gcc_major_version] < 14} { > > ... > > Using gnatmake_version_at_least instead fixes this: > ... > if { ![gnatmake_version_at_least 14] } { > > ... I've committed this fix. https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1da36057976ea565045f319e3d65be7412ca0588 -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-08 15:27 UTC | newest] Thread overview: 5+ 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 2024-11-08 8:08 ` vries at gcc dot gnu.org 2025-01-08 15:27 ` 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).