This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 11 Aug 2017 08:53:01 +0000
- Subject: [Bug libgomp/81805] Another libgomp.c/for-5.c failure on nvptx -- illegal memory access
- Auto-submitted: auto-generated
- References: <bug-81805-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81805
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
(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) call debug_generic_expr (cond)
<<< Unknown tree: c_maybe_const_expr
i >>> > 9223372036854775807
(gdb) n
15030 cond = c_fully_fold (cond, false, NULL);
(gdb) n
15031 switch (cond_expr.original_code)
(gdb) call debug_generic_expr (cond)
(signed long) i < 0
...