From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Fix xfail in gdb.ada/variant_record_field.exp
Date: Mon, 20 Oct 2025 09:46:18 +0200 [thread overview]
Message-ID: <25e90a87-2aa2-433d-bad4-9f4d732d3d8f@suse.de> (raw)
In-Reply-To: <87bjm2bo61.fsf@tromey.com>
On 10/19/25 11:02 PM, Tom Tromey wrote:
> Tom> Well, it's just that for gcc 14.3.0, "[gcc_major_version] <= 14" is 1,
> Tom> but [gnat_version_compare <= 14] is 0.
>
> That seems strange though.
> Do they come from different builds?
No, I meant gcc 14.3.0 / gnat 14.3.0.
If gcc is version 14.3.0, gcc_major_version is 14, and 14 <= 14 is 1.
If gnat is version 14.3.0, gnat_version_compare <= 14 is version_compare
{14 3 0} <= {14}, which is 0.
There is some oddity in version_compare related to comparing lists of
different length: version_compare {1} < {1 0} == 1.
But I don't think that's relevant here. If I do
version_compare {14 3 0} <= {14 0 0}, I also get 0.
Thanks,
- Tom
prev parent reply other threads:[~2025-10-20 7:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-11 13:13 Tom de Vries
2025-10-14 14:59 ` Tom Tromey
2025-10-14 16:04 ` Tom de Vries
2025-10-14 16:17 ` Tom Tromey
2025-10-19 19:50 ` Tom de Vries
2025-10-19 21:02 ` Tom Tromey
2025-10-20 7:46 ` Tom de Vries [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25e90a87-2aa2-433d-bad4-9f4d732d3d8f@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox