On 6/20/2022 11:51 PM, Alexandre Oliva via Gcc-patches wrote:
Systems without preemptive multi-threading require sched_yield calls
to be placed at points in which a context switch might be needed to
enable the test to complete.

Regstrapped on x86_64-linux-gnu, also tested with a cross to
aarch64-rtems6.  Ok to install?


for  gcc/testsuite/ChangeLog

        * gcc.dg/atomic/c11-atomic-exec-4.c: Call sched_yield.
        * gcc.dg/atomic/c11-atomic-exec-5.c: Likewise.
        * gcc.dg/atomic/pr80640-2.c: Likewise.
        * gcc.dg/atomic/pr80640.c: Likewise.
        * gcc.dg/atomic/pr81316.c: Likewise.
        * gcc.dg/di-sync-multithread.c: Likewise.
OK.

I was hoping this would improve things internally as I know we have problems with the c11-atomic-exec-{4,5} and pr80640 testcases with one of our simulators that doesn't handle threads well.  But it doesn't seem to have helped.  Too bad, it would have been nice to have those tests flip to pass consistently.

Jeff

Reply via email to