This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r180722 - in /branches/cxx-mem-model/gcc: Chang...


Author: rth
Date: Tue Nov  1 00:35:40 2011
New Revision: 180722

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180722
Log:
Use __atomic builtins for #pragma omp atomic.

        * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
        fetch_op optabs, only test can_compare_and_swap_p.  Use __atomic
        builtins instead of __sync builtins.
        * optabs.h (get_atomic_op_for_code): Remove decl.
        (struct atomic_op_functions): Move to...
        * optabs.c: ... here.
        (get_atomic_op_for_code): Make static.

testsuite/
        * lib/target-supports.exp (check_effective_target_cas_char): New.
        (check_effective_target_cas_int): New.
        * c-c++-common/gomp/atomic-10.c: Use cas_int; match __atomic builtin.
        * c-c++-common/gomp/atomic-3.c: Likewise.
        * c-c++-common/gomp/atomic-9.c: Likewise.

        * gcc.dg/gomp/atomic-1.c, gcc.dg/gomp/atomic-2.c,
        gcc.dg/gomp/atomic-3.c, gcc.dg/gomp/atomic-4.c, gcc.dg/gomp/atomic-7.c,
        gcc.dg/gomp/atomic-8.c, gcc.dg/gomp/atomic-9.c,
        gcc.dg/gomp/atomic-10.c, gcc.dg/gomp/atomic-12.c,
        gcc.dg/gomp/atomic-13.c, gcc.dg/gomp/atomic-14.c,
        gcc.dg/gomp/atomic-15.c: Move to c-c++-common/gomp/.
        * g++.dg/gomp/atomic-1.C, g++.dg/gomp/atomic-2.C,
        g++.dg/gomp/atomic-3.C, g++.dg/gomp/atomic-4.C, g++.dg/gomp/atomic-7.C,
        g++.dg/gomp/atomic-8.C, g++.dg/gomp/atomic-9.C,
        g++.dg/gomp/atomic-10.C, g++.dg/gomp/atomic-11.C,
        g++.dg/gomp/atomic-12.C, g++.dg/gomp/atomic-13.C,
        g++.dg/gomp/atomic-15.C: Remove.
        * gcc.dg/gomp/gomp.exp, g++.dg/gomp/gomp.exp: Run c-c++-common tests.

Added:
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-1.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-1.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-10.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-10.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-12.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-12.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-13.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-13.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-14.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-14.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-15.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-15.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-2.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-2.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-3.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-3.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-4.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-4.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-7.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-7.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-8.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-8.c
    branches/cxx-mem-model/gcc/testsuite/c-c++-common/gomp/atomic-9.c
      - copied, changed from r180599, branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-9.c
Removed:
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-1.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-10.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-11.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-12.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-13.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-15.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-2.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-3.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-4.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-7.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-8.C
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/atomic-9.C
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-1.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-10.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-11.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-12.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-13.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-14.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-15.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-2.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-3.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-4.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-7.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-8.c
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/atomic-9.c
Modified:
    branches/cxx-mem-model/gcc/ChangeLog.mm
    branches/cxx-mem-model/gcc/omp-low.c
    branches/cxx-mem-model/gcc/optabs.c
    branches/cxx-mem-model/gcc/optabs.h
    branches/cxx-mem-model/gcc/testsuite/ChangeLog.mm
    branches/cxx-mem-model/gcc/testsuite/g++.dg/gomp/gomp.exp
    branches/cxx-mem-model/gcc/testsuite/gcc.dg/gomp/gomp.exp
    branches/cxx-mem-model/gcc/testsuite/lib/target-supports.exp


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]