https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805
Tom de Vries changed:
What|Removed |Added
Status|RESOLVED|WAITING
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805
Tom de Vries changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
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 fo
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805
Tom de Vries changed:
What|Removed |Added
Attachment #41970|0 |1
is obsolete|
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 com
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.
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&action=edit
tentative patch for test-case from comment 3
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)
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.
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)
{
unsigned
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 lo
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?
13 matches
Mail list logo