https://gcc.gnu.org/g:6638fcc161350e1d68c0739356b286cff947470b

commit r15-4725-g6638fcc161350e1d68c0739356b286cff947470b
Author: Dimitar Dimitrov <dimi...@dinux.eu>
Date:   Sun Oct 27 09:49:49 2024 +0200

    testsuite: Require atomic operations for pr47333_0
    
    Since the test uses __sync_fetch_and_add, add a requirement for
    target to support atomic operations on int and long types.
    
    This fixes a spurious test failure on pru-unknown-elf, which lacks
    atomic ops. The test still passes on x86_64-linux-gnu.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/lto/pr47333_0.C: Require target that supports atomic
            operations on int and long types.
    
    Signed-off-by: Dimitar Dimitrov <dimi...@dinux.eu>

Diff:
---
 gcc/testsuite/g++.dg/lto/pr47333_0.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/lto/pr47333_0.C 
b/gcc/testsuite/g++.dg/lto/pr47333_0.C
index b171c8cb9604..254a378f8dfd 100644
--- a/gcc/testsuite/g++.dg/lto/pr47333_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr47333_0.C
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target sync_int_long } */
 /* "WARNING: lto.exp does not support dg-additional-options" */
 #pragma GCC diagnostic ignored "-Wtemplate-body"

Reply via email to