libgomp: Remove the GOMP_MAP_TO_PSET handling code that we once added.
commitb2c3a33803b074052c5178fb1b6cabbd834cfa72
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 17:12:40 +0000 (22 17:12 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 17:12:40 +0000 (22 17:12 +0000)
treed4b46faa342a9f6da6e0347417f8e4f7b2668f11
parent1838e83800f9e1cf12b09e27e4cd7beec54fe4bf
libgomp: Remove the GOMP_MAP_TO_PSET handling code that we once added.

libgomp/
* target.c (gomp_map_vars) <GOMP_MAP_TO_PSET>: Revert earlier
changes.

With Intel MIC offloading (emulation), this fixes:

    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O0  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O1  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O2  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O3 -fomit-frame-pointer  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O3 -fomit-frame-pointer -funroll-loops  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -O3 -g  execution test
    FAIL: libgomp.fortran/examples-4/e.55.2.f90   -Os  execution test
    FAIL: libgomp.fortran/target3.f90   -O0  execution test
    FAIL: libgomp.fortran/target3.f90   -O1  execution test
    FAIL: libgomp.fortran/target3.f90   -O2  execution test
    FAIL: libgomp.fortran/target3.f90   -O3 -fomit-frame-pointer  execution test
    FAIL: libgomp.fortran/target3.f90   -O3 -fomit-frame-pointer -funroll-loops  execution test
    FAIL: libgomp.fortran/target3.f90   -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions  execution test
    FAIL: libgomp.fortran/target3.f90   -O3 -g  execution test
    FAIL: libgomp.fortran/target3.f90   -Os  execution test

... for which Valgrind had reported:

    ==21161== Conditional jump or move depends on uninitialised value(s)
    ==21161==    at 0x547233D: gomp_map_vars (target.c:267)
    ==21161==    by 0x54743C3: GOMP_target_data (target.c:934)
    ==21161==    by 0x400E6F: vec_mult_ (e.55.2.f90:38)
    ==21161==    by 0x4011C9: MAIN__ (e.55.2.f90:55)
    ==21161==    by 0x401200: main (e.55.2.f90:56)
    *** Error in `/tmp/offload_aCxI50/offload_target_main': corrupted double-linked list: 0x0000000000c8b9e0 ***

The OpenACC PSET test cases still work.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@219022 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog.gomp
libgomp/target.c