[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 Tom de Vries changed: What|Removed |Added Status|RESOLVED|WAITING Last reconfirmed|

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-17 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #10 from Tom de Vries --- [ Redoing https://gcc.gnu.org/ml/gcc-bugs/2017-08/msg01333.html, using PR81875 instead of PR81844, since PR81844 was overwritten ] Filed comment 3 as PR81875 - omp for loop optimized away This PR remains

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-14 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #10 from Tom de Vries --- Filed comment 3 as PR81844 - omp for loop optimized away This PR remains for the analysis of the test-case from comment 0.

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 Tom de Vries changed: What|Removed |Added Attachment #41970|0 |1 is obsolete|

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #8 from Tom de Vries --- (In reply to Tom de Vries from comment #7) > (In reply to Tom de Vries from comment #6) > > Created attachment 41970 [details] > > tentative patch for test-case from comment 3 > > Works for test-case from

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #7 from Tom de Vries --- (In reply to Tom de Vries from comment #6) > Created attachment 41970 [details] > tentative patch for test-case from comment 3 Works for test-case from comment 2 as well.

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #6 from Tom de Vries --- Created attachment 41970 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41970=edit tentative patch for test-case from comment 3

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #4) > (gdb) call debug_generic_expr (cond) > (signed long) i < 0 And the conversion from unsigned to signed comparison is done here in c_parser_omp_for_loop: ... (gdb)

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #4 from Tom de Vries --- (In reply to Alexander Monakov from comment #3) > The comparison should have read '(long long)i < 0', no idea how the cast is > lost. It seems to be lost here, in c-omp.c: ... 553/* 2.5.1.

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-10 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #3 from Alexander Monakov --- The new testcase fails on any target and not related to offloading. Simplified further: #define N 32ULL int a[N]; const unsigned long long c = 0x7fffULL; f2_tpf_static32 (void) {

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-10 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #2 from Tom de Vries --- Simplified version, aborts in host code because loop has no effect: ... #include extern void abort (); #define N 32ULL #pragma omp declare target int a[N]; #pragma omp end declare target const unsigned

[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access

2017-08-10 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805 --- Comment #1 from Alexander Monakov --- Can't reproduce this on my end. Are you going to proceed with analyzing the failure?