https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113448

            Bug ID: 113448
           Summary: libgomp.c/alloc-pinned-1.c etc. XPASS
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, jakub at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

Two new libgomp testcases introduced in

commit 348874f0baac0f22c98ab11abbfa65fd172f6bdd
Author: Andrew Stubbs <a...@codesourcery.com>
Date:   Tue Jan 4 12:22:01 2022 +0000

    libgomp: basic pinned memory on Linux

XPASS on Solaris/SPARC and x86, 32 and 64-bit:

+XPASS: libgomp.c/alloc-pinned-1.c execution test
+XPASS: libgomp.c/alloc-pinned-2.c execution test

The tests emit

OS unsupported

The XPASSes are no wonder since on any non-Linux target, the tests have

int  
get_pinned_mem ()
{ 
  return 0;
} 

and at the same time

/* { dg-xfail-run-if "Pinning not implemented on this host" { ! *-*-linux-gnu }
} */

However, the test fake-PASSes, thus the XPASS.  I believe get_pinned_mem should
simply abort() on unsupported OSes.

Reply via email to