On 10/29/26 21:45, Thomas Schwinge wrote:
External email: Use caution opening links or attachments


Hi Matthew!

I happened to be testing this patch series on an "old" system, which has
'build-gcc/x86_64-pc-linux-gnu/libgomp/testsuite/libgomp-site-extra.exp':

     set libgomp_config_path {linux/x86 linux posix}

..., that is, libgomp built without 'linux/futex_waitv'.

However, for testing, I had:

On 2026-10-12T18:00:36+0100, <[email protected]> wrote:
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp

+proc check_effective_target_linux_futex_waitv { } {
+    global libgomp_config_path
+    return [expr {
+           [lsearch -exact $libgomp_config_path "linux/futex_waitv"] >= 0}]
+}

... changed as follows:

      proc check_effective_target_linux_futex_waitv { } {
     +    return 1
     +    #TODO id:[email protected]

..., that is, effective-target 'linux_futex_waitv' claimed to be
supported, unconditionally.

I notice *all* test cases PASSing that are conditionalized to it (as in
'dg-do run { target linux_futex_waitv }') -- that is, PASSing despite
libgomp built without 'linux/futex_waitv'.  That doesn't sound like
what's expected?  Does it mean that these test cases aren't in fact
testing any specifics of 'linux/futex_waitv', but are generic?  In that
case, we wouldn't need the effective-target 'linux_futex_waitv'
conditional at all?


Grüße
  Thomas

I just asked my agent to look a little more carefully into this.
I'm not sure how much weight that should carry, but it's claiming that some of these testcases exercise code paths not triggered in the existing testsuite (even though they're designed to exercise specific futex_waitv execution paths).

The ones where this supposedly holds are:

  Useful Additional Scenarios

• barrier-tree-task.c: forces a selected non-last waiter to execute a task before other threads may enter. Existing tests allow that execution, but no equivalent arrival gate was found. • cancel-late-arrival-1.c: forces barrier entry after cancellation commits, then checks healthy subsequent execution. Existing cancellation tests provide opportunities, not that ordering. Variant 2 would duplicate this generic case. • barrier-copyprivate-task.c: combines controlled winners with queued tasks in the same team. Existing tests cover copyprivate endpoints and multiple generations, but no equivalent controlled composition was established. • team-held-pause.c and team-held-pthread-exit.c: interpose an explicit serial region immediately before their respective cleanup endpoints. The individual operations already exist; this ordered combination differs.

@Jakub & Thomas -- should I remove the `linux_futex_waitv` effective target for these testcases?

Cheers,
MM

Reply via email to